Jump to content

mail() function going into spam


glenelkins

Recommended Posts

Hi

 

especially in Hotmail. I know i can use SMTP but its more coding lol!

 

here are my headers:

 

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type:text/html\n";
$headers .= "From: [email protected]\n";
$paras = "[email protected]\n";

Link to comment
https://forums.phpfreaks.com/topic/165933-mail-function-going-into-spam/
Share on other sites

You may never be able to solve the answer. From what I have found out is that most of those services, like Hotmail Yahoo etc filter any email where the domain it is being sent from does not have a mail record. I would check via a free online service to see if your domain IP shows as having a mail server. If it does not, you may want to contact your host for a way to remediate that.

 

But also adding more thorough headers can solve the problem as well. I would take a look at some of the headers found at mail and maybe add more in there to help "prove" it is not spam.

 

Me, I stopped using my server's mail service and instead use GMail hosted with 3-4 accounts that I use to send mail from as GMail allows for 500 emails a day per account on their Hosted side. I rarely send 500, but just incase of a huge mail day I have the backups to go to.

 

Hope that helps.

You may want to look at the actual MTA also.  For instance, a default sendmail installation will stamp every outbound header with "Reply-to: machine_cname@machine_ipaddress" and most mail servers will not accept mail that has an invalid reply-to

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.