Mail php headers

$to = 'info@eee.com';

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8\n";
$headers .= 'From:info@eee.com'. "\r\n" .
             'Bcc: eee@eee.gr' . "\r\n" .
             'Bcc: eee@eee.gr' . "\r\n";
$headers .= "Reply-To:eee\n"; 
$headers .= "X-Priority: 1\n";
$headers .= "X-mailer: DAUMED\n"; 
$headers .= "X-MSmail-Priority: High\n";

$subject="eee Contact form";

$message =$buffer.$send.$footer;
//echo $message;
//echo $subject;

if(@mail($to, $subject, $message, $headers)){
//echo "_mailsuc";
echo "The e-mail was sent successful";

} else {

//echo _mailsucden;
echo "There is an error please try again!";
}

Leave a comment