Hi
i'm sending mail using the below function.,
the function sends the mail but the recipient gets the mail in spam.,
could anyone help.,
-
<?
-
$headers = "From: '$from'" . "\r\n";
-
if(mail("example@gmail.com","hi","how r u",$headers)){echo 'success';}
-
?>
-
regards
vijay.
Actually unline the other two mentioned, that's no even closely related as having your domain in check.
Google SPF.
It will take a while for new domains to have email sent into inbox instead of junk folder.
But know the basics. Always add a "From" email field as those without it are marked as spam.
dnsstuff.com used to give you lots of info for free, but now its membership. I've seen their service and it is worth the price, i'm just too cheap. It may be well worth it to have them check MX records etc.
Cheers,
Dan