[PHP] Automated Emails

  • mando
  • Student
  • Student
  • No Avatar
  • Joined: Feb 26, 2006
  • Posts: 65
  • Status: Offline

Post February 26th, 2007, 6:54 pm

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?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 26th, 2007, 6:54 pm

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post March 21st, 2007, 2:58 pm

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.
I'd love to change the world, but they won't give me the source code.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 176 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.