Jump to content


Photo

Hotmail not receiving mail when sent with PHP mail()


  • Please log in to reply
1 reply to this topic

#1 bubbadawg

bubbadawg
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 05 October 2006 - 09:24 PM

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:

$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().""; 

Any suggestions as to what I am doing wrong?

Thanks for any and all replies.

#2 RyanSmith345

RyanSmith345
  • Members
  • PipPip
  • Member
  • 11 posts
  • LocationFort Collins, CO

Posted 05 October 2006 - 09:58 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users