Jump to content

Hotmail not receiving mail when sent with PHP mail()


bubbadawg

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:

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.