简体   繁体   English

Hotmail的PHP邮件功能问题?

[英]PHP mail function issue with hotmail?

I have created a script on mac OS X and it successfully sent an email to my gmail account but when i tried to use it to my hotmail account it didn't work is it because hotmail uses a spam filter or what? 我已经在Mac OS X上创建了一个脚本,它成功地向我的gmail帐户发送了一封电子邮件,但是当我尝试将其用于我的hotmail帐户时,它没有用,是因为hotmail使用了垃圾邮件过滤器还是什么?

I used the same code with gmail and it worked but it didn't work with hotmail. 我在gmail上使用了相同的代码,但仍然有效,但不适用于hotmail。

Anybody knows what might have gone wrong?? 有人知道可能出了什么问题吗?

Thanks in advance. 提前致谢。

You're using it directly from your own computer? 您是直接在自己的计算机上使用它吗? Then yes, you may be reported as spam (sometimes, mails doesn't even show up in the spam box) Try to play with the headers (for example, "from" should be the same domain as your server), and avoid "spammy" words in content of the mail. 然后,是的,您可能会被举报为垃圾邮件(有时,垃圾邮件框中甚至没有显示邮件)尝试使用标头(例如,“发件人”应与您的服务器位于同一域),并避免使用“邮件内容中的“垃圾邮件”字样。

If I recall, the "sendmail" program that comes on OS X is actually Postfix. 如果我还记得,OS X上的“ sendmail”程序实际上是Postfix。

You need to set up Postfix to send e-mail through GMail's servers, not directly. 您需要将Postfix设置为通过GMail的服务器发送电子邮件,而不是直接发送。

One guide I found is here . 我找到的一个指南在这里 There are certainly many others. 当然还有很多。 You end up having to turn on SSL through some configuration, as I recall. 我记得,您最终不得不通过某些配置打开SSL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM