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<[email protected]>\r\n";$headers .= "Reply-To:<[email protected]>\r\n>";$headers .= "Return-Path: <[email protected]>\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 https://forums.phpfreaks.com/topic/23114-hotmail-not-receiving-mail-when-sent-with-php-mail/ 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. Link to comment https://forums.phpfreaks.com/topic/23114-hotmail-not-receiving-mail-when-sent-with-php-mail/#findComment-104596 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.