How to send email in Hotmail's INBOX instead of JUNK using PHP? [closed]

柔情痞子 提交于 2019-12-06 07:36:14

Getting mail past the big mail provider's spam filters reliably requires more work and access than any single developer has.

You can start with things you can control, like RDNS records for your IP, SPF records for the mail server, setting up DomainKeys, etc. That'll help.

But you'll never negotiate the whitelist access legitimate e-mail companies have to get their mail to these clients and the daily work they do to stay on those whitelists and remove their IPs from blacklists.

The short answer: If you want programmatically sent mail to reach inboxes reliably, then use the services of someone in that business.

http://www.sendgrid.com

http://www.postmarkapp.com

http://aws.amazon.com/ses

Generally this has everything to do with the mail server and protocol you are using...

Mail sent through php using sendmail does not have to be verified and can be sent anonymously... this is probably a reason why your email's are ending up caught in spam folders...

I recommend using an authenticated smtp server there verifies the sender's identity (that also needs to match the from header), you will have a much better chance getting to the inbox.

Also, realize that if this is unsolicited email, nothing can help you and you will (if not now, eventually) be black listed for spamming, and at that point no one can help you, or want to...

Chris Laplante

You can't. If you are sending what an email client considers to be "junk", it will end up in the junk folder. Solution: improve the quality of what you are sending.

This is a good reference: sending mail with php & escaping hotmails junk folder

This totally depends on the mail client, not the mail function. I know outlook does some checking on the header fields present in the message to help determine if a mail message is junk or not, for instance MX/A Record Lookups. Other clients may as well. Also, if your message contains 'junk content' (such as the words c1alis or z@nex), mail clients may probably tag your message as junk as well.

If you are sending your e-mail from a non-existent e-mail address, try sending it from one that does exist and see if it is not tagged as junk.

I had some success with PHPMailer. Try to send mails through an SMTP server from the same domain as the from header.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!