Jump to content


PHP Mail Function Wont Send to Hotmail. HELP ME PLEASE!

  • Please log in to reply
4 replies to this topic

#1 scott.russell

  • Members
  • PipPip
  • Member
  • 15 posts

Posted 15 August 2006 - 03:06 PM

I have been working on this all morning and no matter how hard I try this script wont send emails to hotmail.  Tell me what I should do to get it working.
$message = "HI";
$subject = "Scores Posted";
$to = $userinfo[3];  //Pulls email out of database
$headers  = "MIME-Version: 1.0\r\n".
   			"Content-type: text/html; charset=iso-8859-1\r\n".
   			"From: \"Scores\" <squall8046@hotmail.com>\r\n".
   			"Content-Transfer-Encoding: 8bit\r\n\r\n";
$headers .= 'X-Mailer: PHP/' . phpversion();

//sends current scores by email to all players in the db
mail($to, $subject, $message, $headers);

#2 Daniel0

  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 15 August 2006 - 03:21 PM

Try to check your junk mail folder or whatever it's called in hotmail.

#3 akrytus

  • Members
  • PipPipPip
  • Advanced Member
  • 70 posts

Posted 15 August 2006 - 03:24 PM

Does it send it the other mail accounts?

#4 SharkBait

  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 15 August 2006 - 03:27 PM

I use mail() here at work for a couple of my scripts and yes hotmail blocked them.  Though the webserver I am using for these particular scripts are in house are not out actual mail server so they are being relayed.

Hotmail seems to notice this relay and junk them.  In hotmail live (yes not everyone has live) you have the ability to add hosts to receive email from.  I had to add the domain name and then Hotmail was redirecting the mail properly.

Though if you're not relaying the mail, then I am unsure.  It could be the wording of the email that makes it look like spam?

I found that Yahoo and GMail were fine with out modifying any of the emails though. Hotmail seems to be either a) picker or b) less intellegent ;)

#5 scott.russell

  • Members
  • PipPip
  • Member
  • 15 posts

Posted 15 August 2006 - 03:30 PM

it sends to ever email address in my database but hotmail

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users