[PHP] Automated Emails

  • mando
  • Student
  • Student
  • mando
  • Posts: 65

Post 3+ Months Ago

My emails sent from my registration script to verify accounts are ending up in spam folders, and in some cases, not even being put in the client's inbox at all.

I'm thinking that it's a problem with the headers. I remember trying out a sample PHP email script and running it on my server, and it ended up in my GMail inbox (not spam folder). I deleted the script, can't find it, and now I have my own script, which I'm pretty sure has different headers.

So what headers should I use to make sure my emails don't end up in the spam box?
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

I've had some success with the xmailer header:
Code: [ Select ]
$headerVar .= "X-Mailer: PHP v".phpversion(). "\r\n";

Unfortunately, this could also have to do with your mail server's dns info or list status (black/white).

Another thing to do is audit your content for common filtered items, check here for the list of spamassassin targeted items.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 39 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.