Jump to content

hotmail and msn members not getting email using the mail() method


jasonc

Recommended Posts

I have had some members of our site complain that are not getting password details or anything from our sites signup or lost password scripts.

 

here are the various parts that are used to send emails to them, can anyone see what i could be doing wrong to prevent members with MSN or HOTMAIL address from getting the emails ?

 

thanks

 

 

 

$siteurl "mysite.com";
$code = "some unique random hash code which is stored in DB";
$email = "[email protected]";
$from_email = "noreply@" . $siteurl;
$email_headers = "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: ".$from_email."\r\n";

$emailtext = '<html><head><body><table width="100%" height="100%" align="center" bgcolor="#507BCD"><tr><td height="351" valign="top"><div align="center"><p><strong><em>Thank you for your registration<br>Please click the following link to complete you registration.<br><br><a href="http://' . $siteurl . '/?r=' . $code . '" />Complete signup process.</a></p><p>If you can not click the link above, then visit the following link by copying and pasting it in your browser and follow on screen instructions.</p><p>http://' . $siteurl . '/?r=' . $code . '<br><br>Term and conditions apply.<br>Please see our web site for more information.<br><a href="http://' . $siteurl . '">' . $siteurl . '</a><br><br></p></div></td></tr></table></body></head></html>';

$mymail = mail($email,"Thank you for signing up to ".$sitename, $emailtext, $email_headers);

Issue is not related to PHP. Hotmail could be treating mails from your server as spam. Check the messages in your server maillogs or ask the system administrator to do the same, see if the mails are bouncing and if yes - check why the recipient server is rejecting them. Generally the bounced message will be containing a diagnostic message explaining the same.

what is the correct method in the email headers should i use to have any emails bouncing back come back to me and not to the server.

 

i thought using the 'from' field in the email headers would do this?

 

the email in the 'from' is a email account i have setup...

 

Servers IP could be black listed. Check yourself out on WHOis ( http://www.whois.sc/ ) and MXToolbox ( http://mxtoolbox.com/ )

 

You'll find out if your blacklisted otherwise its your PHP I havnt read it but it sounds like (if its delivering to other email providers) like your blacklisted.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.