Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Sending Email with PHP

After user signup I want to send out a mail but...

1:53 pm on Dec 17, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:May 7, 2005
votes: 0


I'm about to launch a new site and before I put it live I decided to test out the new member email functionality to Gmail and hotmail.

The mail goes through to gmail no problem, not flagged as spam but with hotmail it is flagged as spam straight away and stuck in the trash.

Does anyone have any experience of sending the correct headers to avoid the message being "spammed".

Thanks in advance,

3:49 pm on Dec 17, 2005 (gmt 0)


WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
votes: 0

what headers are you setting now?

also the text in the email is a major factor in passing spam tests

I use this as a reference

12:20 am on Dec 18, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 30, 2005
votes: 0

Use the "-f" parameter in the mail function to set to a valid return address (preferably match this with the From: Header)
Also, make sure reverse DNS is working (dnsstuff.com)

Experiment with different titles, too.

I still get unfiltered mails in Hotmail with titles like "buy cheap vi@gra" and other nonesense, which makes a mockery of their whole spam filtering system anyway.