Jump to content

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


scott.russell

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]
Link to comment
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 ;)
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.