php mail


<?php

$headers  = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";

$headers .= 'From: Site <no-reply@site.com>' . "\r\n";

if(mail('mail@site.com', 'Message title', 'Message text', $headers)){

	echo 'E-mail was sent successfully.';

}else{

	echo 'E-mail was not sent.';

}

?>

Leave a Comment