I have been trying to send emails to an account at Hotmail and for some reason the email wouldn't go through. I created a minimal script to make some tests, and I found that if the header of the email contains several lines mentioning MS Outlook information then everything is ok. Otherwise the mail does not go through!
This is my code:
<html>
<header><title>test mail</title></header>
<body>
<?php
$from = "user@adomain.com";
$to = "user@hotmail.com";
$extra = "From: <$from>"
."\r\nX-Priority: 3"
."\r\nX-MSMail-Priority: Normal"
."\r\nX-Mailer: Microsoft Outlook Express 6.00.2900.2180"
."\r\nX-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180";
mail($to, "test subject", "test mail", $extra);
?>
</body>
</html>
Just change the $from and $to variables.
If you try this code as it is, it works good. If you comment out the X-MSMail-Priority or the X-Mailer lines .. your email does not go through.
Now, can somebody tell me ... am I missing something or is MS so arrogant??