bubbadawg Posted October 5, 2006 Share Posted October 5, 2006 I am sending mail using PHP mail() and I am unable to get my hotmail account to receive any emails using the mail(). I have read thru several other posts regarding trouble with php mail() and hotmail and I am guessing it's something with the headers. I have tried many of the suggestions, but nothing seems to work, the mail is simply not showing up in my hotmail account. Here are the headers that I am using:[code]$headers .= "From: Webmaster<webmaster@mydomain.com>\r\n";$headers .= "Reply-To:<webmaster@mydomain.com>\r\n>";$headers .= "Return-Path: <webmaster@mydomain.com>\r\n";$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";$headers .= "X-Priority: 1\r\n";$headers .= "X-MSMail-Priority: High\r\n";$headers .= "X-Mailer: PHP/".phpversion().""; [/code]Any suggestions as to what I am doing wrong?Thanks for any and all replies. Quote Link to comment Share on other sites More sharing options...
RyanSmith345 Posted October 5, 2006 Share Posted October 5, 2006 You may need to setup SPF records for your email account on the server so Hotmail doesn't view them as spam.I can't remeber off the top of my head how to accomplish this, but if you do a simple search for "Email SPF", I'm sure you'll find the answer. From what I remeber, it was really easy to setup. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.