Page 1 of 1

Keeping automatic emails out of the spam folder

Posted: Mon Dec 14, 2009 9:56 am
by ianao
Hi

I am trying to set up a PHP mail function that sends a new member a welcome email.

Here's a snippet:

$headers = "MIME-Version:1.0\r\n";
$headers .= "Content-type:text/html;";
$headers .= " charset=iso-8859-1\r\n";
$headers .= "From: email@email.com \r\n";

$mess="Hello ";
$mess.=ucfirst($firstname);
$mess.="<br />";
$mess.="<p>";
$mess.= "You have applied for an account with <b>us.com</b>";
$mess.="</p>";
$mess.="<br />";
$mess.="Click <a href=\"http://www.us.com/confirm_member.php?us ... \">here</a> to confirm your membership";

$re= "You have been sent a message from us.com";
mail( $email, $re, $mess, $headers);




My problem is that the recipient always seems to get the email in his/her email spam folder.

Any advice would be great.

Thanks
ianao

Re: Keeping automatic emails out of the spam folder

Posted: Tue Dec 15, 2009 6:19 am
by josh
Paste the rawtext message that is being received, in outlook its called full headers, in gmail its called original message

Re: Keeping automatic emails out of the spam folder

Posted: Tue Dec 15, 2009 8:06 am
by ianao
Hi

I'm using Hotmail, and I can't see any options saying 'original message'. I can get to message source if that's the same thing...?

Many thanks for your help.