Can not send mails only to Hotmail. (gmail, etc. works perfectly)


I need your help. I have a php script to send email to people who register. but that script does not work for hotmail. hotmail users do not receive that email at all. not even in the junk folder. it works perfectly ok for yahoo! Mail. what am i doing wrong. here's the basic mail script:

 $to      = '[email protected], ****, ***';
 $subject = 'the subject';
 $message = 'hello';
 $headers = 'From: [email protected]' . "\r\n" .
     'Reply-To: [email protected]' . "\r\n" .
     'X-Mailer: PHP/' . phpversion();

 mail($to, $subject, $message, $headers);

Result: only [email protected] recieved the mail.

How can I fix this?

Btw, my contact script works great with hotmail.

It's not a PHP problem. Those bad mail providers make use of non standard aggressive anti spam policies that silently drop incoming emails.

You should call your sysadmin and let him check the MTA on your PHP servers. Usualy it's a better solution to use the MTA relay given by your PHP Internet Service Provider instead of using a standalone MTA like sendmail on your PHP server machine.