不能只发送邮件到Hotmail。 (gmail等)完美工作 [英] Can't send mails to only Hotmail. (gmail, etc. works perfectly)
问题描述
这里是基本邮件脚本:
$ to ='info@mydomain.nl,**** @ hotmail .com,***@live.nl';
$ subject ='主题';
$ message ='hello';
$ headers ='From:webmaster@example.com'。 \\\\。
'Reply-To:webmaster@example.com'。 \\\\。
'X-Mailer:PHP /'。 phpversion();
mail($ to,$ subject,$ message,$ headers);
结果:只有info@mydomain.nl收到邮件。
我如何解决这个问题?
Btw,我的联系人脚本使用Hotmail工作得很好。
这不是一个PHP问题。
这些不好的邮件提供商使用非标准的反垃圾邮件策略,无声地丢弃传入的电子邮件。
你应该叫你的系统管理员,让他检查MTA您的PHP服务器。
通过使用PHP Internet服务提供商提供的MTA中继服务,而不是在PHP服务器上使用sendmail等独立的MTA,这是一个更好的解决方案。
HTH。
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 = 'info@mydomain.nl, ****@hotmail.com, ***@live.nl';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
Result: only info@mydomain.nl 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.
HTH.
这篇关于不能只发送邮件到Hotmail。 (gmail等)完美工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!