php mail

<?php
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$headers .= 'From: Site <[email protected]>' . "\r\n";
if(mail('[email protected]', 'Message title', 'Message text', $headers)){
	echo 'E-mail was sent successfully.';
}else{
	echo 'E-mail was not sent.';
}
?>

Leave a Reply

Your email address will not be published. Required fields are marked *