emails from my forms are treated as spam or junk mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
olu001
Forum Newbie
Posts: 1
Joined: Tue Apr 08, 2008 4:53 am

emails from my forms are treated as spam or junk mail

Post by olu001 »

What kind of code do I need to prevent emails from my website going straight into junk mail of hotmail and yahoo, all emails I send from my website go into junk mail. I beleive it is to do with my headers or so, How do I rectify this?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: emails from my forms are treated as spam or junk mail

Post by Chris Corbyn »

I hear http://swiftmailer.org is very good :P
User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

Re: emails from my forms are treated as spam or junk mail

Post by Kadanis »

@Chris: Shameless plug :), but very true it's a great mailer

It could be a whole list of things really. Not just email headers. How are you currently mailing? PHP Mailer? Swift? mail()?

If possible please post the full headers so people can see them and maybe help out.

Here is a few questions, the answers to which could guide you in the right direction. All these are things I've found help when setting up mail servers.

1. Is the From email address a real email?
2. Is the IP you are sending from Static or Dynamic?
3. Is the Server shared or dedicated?
4. Do you know if you have rDNS set up on the server?

A good way to test is to set up a test server with something like Exim and SA on it, then send the emails there and check their spam ratings. You should then be able to see from the SA logs why the spam score was give to a specific email and fix it accordingly.
Post Reply