Jump to content


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


Hotmail not receiving mail when sent with PHP mail()

Recommended Posts

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.

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites


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.