Jump to content

Archived

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

scott.russell

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

Recommended Posts

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.
[code]
$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);

[/code]

Share this post


Link to post
Share on other sites
Try to check your junk mail folder or whatever it's called in hotmail.

Share this post


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

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.