Sending Email with PHP and ensuring it doesn't get blocked

人盡茶涼 提交于 2019-11-28 12:45:14

There are many different factors which take into account whether an email is blocked or not, headers play a part but also to consider are:

  • Consistent number of emails being sent day to day (100,000 once a month will damage your reputation more than 100,000 each day)
  • If you frequently email to bouncing addresses
  • Whether you are on the recipient's safe sender's list
  • The email provider you are sending to
  • Various DNS settings such as are you sending email from the domain your IP is registered to
  • Whether you frequently email invalid addresses
  • Whether you have been blacklisted by one of the blacklist companies
  • Various other email provider mechanism such as yahoo's domain key
  • The content of the email, avoid phrases like FREE, MONEY and LUCKY
  • Whether you include an unsubscribe link ( you MUST MUST provide an easy way to opt out of emails)

For one off emails you are often ok, if you plan to use your application to send frequent mailing lists it may be worth enlisting a third party company specialising in bulk email.

Think about using a email sending service whose SLA (service Level Agreement) aligns with the deliverability rate you require.

There are a bunch of services that do this: SendGrid, Amazon SES, etc.

I suggest SendGrid because its relatively cheap and extremely easy to implement.

Also, this was an interesting read (not scholarly, but has some interesting insights): http://www.smashingmagazine.com/2007/10/16/best-practices-for-bulletproof-e-mail-delivery/

Differing sender and reply-to fields can be a red flag for some spam filters (although not all), but the best approach to ensure delivery is to do everything by the book. Spam is often identified by the fact that it is similar to other spam, has some parts of the header differing from standard as you identified, or is sent from a server not authorised for that email domain (see sender policy frameworks for a good way to improve your chances and ask your hosting provider to set it up).

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