Page 1 of 1

Script Generated emails getting marked as spam

Posted: Mon Dec 20, 2004 6:19 am
by mzfp2
Hi

My website produces automatic emails for users to activate their accounts when they register.

However for many users with hotmail or yahoo accounts, these generated emails are ending up in their spam or junk folders, and therefore seriously affecting the number of people that register succesfully.

Is there any way to avoid such a problem (I am using sendmail function).

Many Thanks

Posted: Mon Dec 20, 2004 9:44 am
by pickle
One problem that may occur is the fact that email gets sent as HTML email. Most SPAM filters automatically flag an email as SPAM if an email is all HTML.
Also, in Hotmail at least, users can set up their accounts to mark as SPAM, all email that doesn't come from a list they've set up. Your users may have this set up.

Posted: Mon Dec 20, 2004 11:57 am
by raging radish
I was having the same issue. I changed the From: and Reply-To: headers to a valid domain and the mail goes through.

Code: Select all

mail("recipient@domain.com", "Subject", $message,
     "From: my_email@{$_SERVER['SERVER_NAME']}\r\n" .
     "Reply-To: my_email@{$_SERVER['SERVER_NAME']}\r\n" .
     "X-Mailer: PHP/" . phpversion());