jasonc Posted July 1, 2008 Share Posted July 1, 2008 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); Link to comment https://forums.phpfreaks.com/topic/112783-hotmail-and-msn-members-not-getting-email-using-the-mail-method/ Share on other sites More sharing options...
LooieENG Posted July 1, 2008 Share Posted July 1, 2008 It's a problem with Hotmail or your server, not PHP Link to comment https://forums.phpfreaks.com/topic/112783-hotmail-and-msn-members-not-getting-email-using-the-mail-method/#findComment-579226 Share on other sites More sharing options...
Vikas Jayna Posted July 1, 2008 Share Posted July 1, 2008 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. Link to comment https://forums.phpfreaks.com/topic/112783-hotmail-and-msn-members-not-getting-email-using-the-mail-method/#findComment-579242 Share on other sites More sharing options...
jasonc Posted July 1, 2008 Author Share Posted July 1, 2008 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... Link to comment https://forums.phpfreaks.com/topic/112783-hotmail-and-msn-members-not-getting-email-using-the-mail-method/#findComment-579618 Share on other sites More sharing options...
miracle_potential Posted July 1, 2008 Share Posted July 1, 2008 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. Link to comment https://forums.phpfreaks.com/topic/112783-hotmail-and-msn-members-not-getting-email-using-the-mail-method/#findComment-579621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.