Why php mail is going to SPAM?

Hi, 


I am facing issue with sending the email. It is always going to SPAM box in the emails. It annoyed me a lot and not able to find the correct solution for this.
I will be thankful if any expert in this issue helps me to solve the issue.

Thanks

Asked 06 May, 18 at 11:50 PM

Tim Martin
Php email

Answer

Hi, 

Use the following Header while sending the email:


$headers .= "Reply-To: $name <$email>
"; 
$headers .= "Return-Path: $name <$email>
"; 
$headers .= "From: $name <$email>
";   
$headers .= "MIME-Version: 1.0
";
$headers .= "Content-type: text/plain; charset=iso-8859-1
";
$headers .= "X-Priority: 3
";
$headers .= "X-Mailer: PHP". phpversion() ."
" ; 

It worked to me, and hope it will work to your too...

Thanks

like