PHP mail() going to SPAM--PLS Help
Posted: Mon Nov 24, 2008 3:17 pm
Hi,
I am having astrange problem with mail() .
I am using the fiollowing code
This is always sending mails to spam.Even for GMail and Yahoo it is not atall coming.
Can anyone suggest me what is wrong with the cldoe?
Thanks,
Aniran
I am having astrange problem with mail() .
I am using the fiollowing code
Code: Select all
$to=$email;
$subject='domain.com: Your application will be reviewed soon!';
$from='contact@anirban.com';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .="From:".$from."\r\nContent-Type: text/html\r\nCc:anirbanb2004@yahoo.com\r\nReply-To:contact@racsuccess.com";
$body='Hi '.$fname.' '.$lname.', thanks for your interest in becoming a aaa mentor.<br>
mail($to,$subject,$body,$headers);Can anyone suggest me what is wrong with the cldoe?
Thanks,
Aniran