简体   繁体   中英

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?

I used the same code with gmail and it worked but it didn't work with 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.

You need to set up Postfix to send e-mail through GMail's servers, not directly.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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