不能只发送邮件到Hotmail。 (gmail等)完美工作 [英] Can't send mails to only Hotmail. (gmail, etc. works perfectly)

查看:170
本文介绍了不能只发送邮件到Hotmail。 (gmail等)完美工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要你的帮助我有一个php脚本发送电子邮件给注册的人。但该脚本不适用于hotmail。 hotmail用户根本没有收到该电子邮件。甚至在垃圾文件夹中。它的工作完全可以为雅虎!邮件。我究竟做错了什么。
这里是基本邮件脚本:

  $ 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆