hemi519
11-30-2010, 05:03 PM
Hi All,
Iam sending mails from PHP and they are going straight to SPAM folder.How to avoid these and make them to my inbox. this is my code
<?php
$To="ssssssss@gmail.com";
$Subject="U WON 10 crore";
$headers = "From: sss@gmail.com";
$Body="see this image";
if(mail($To,$Subject,$Body,$headers))
{
echo "SUCCESS";
echo ("<a href='$url'\">Back to Website</a>");
}
else
{
echo"message sending failed";
}
?>
Iam sending mails from PHP and they are going straight to SPAM folder.How to avoid these and make them to my inbox. this is my code
<?php
$To="ssssssss@gmail.com";
$Subject="U WON 10 crore";
$headers = "From: sss@gmail.com";
$Body="see this image";
if(mail($To,$Subject,$Body,$headers))
{
echo "SUCCESS";
echo ("<a href='$url'\">Back to Website</a>");
}
else
{
echo"message sending failed";
}
?>