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

给你一囗甜甜゛ 提交于 2019-12-22 17:41:11

问题


As my question says, is there any possible way to send an email from your script into the inbox than junk ? I used mail() and very variations with headers, then a lot of tests with PHPMailer , set SMTP etc but nothing. All of the emails are sent into the Junk folder.

I am curious on how I get so many newsletters or simple emails from blogs into my inbox and I can not send properly an email notification about a purchase that a user made.

I am using shared hosting on bluehost.

Please share me your thoughts or code (if there is any).


回答1:


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




回答2:


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...




回答3:


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




回答4:


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.




回答5:


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



来源:https://stackoverflow.com/questions/7083432/how-to-send-email-in-hotmails-inbox-instead-of-junk-using-php

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