|
My PHP mail works properly with normal email address, but with spam protecting mail like Yahoo it is marked as Spam. Do you guy know why?
This is my code:
// send email;
// $content_main
$to = "$customer_email";
$subject = $LG["word_hi"]. $customer_name;
$headers = "";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "From: $admin_name <$admin_email> \r\n"
. "To: $customer_name <$customer_email> \r\n"
. "Reply-to: <$admin_email> \r\n"
. "Return-path: <$admin_email> \r\n"
. "X-Mailer: PHP/" . phpversion();
$message = $LG["word_dear"]." $customer_name ."
--------------------------<br>
$content_main
<br>----------------------------<br>".
$LG["email_goodbye"];
mail($to, $subject, $message, $headers);
|