使用PHP发送电子邮件并确保它不会被阻止 [英] Sending Email with PHP and ensuring it doesn't get blocked

查看:164
本文介绍了使用PHP发送电子邮件并确保它不会被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用PHP发送HTML电子邮件.我想知道在电子邮件中应使用什么标题,以确保它不会被阻止或最终出现在SPAM文件夹中.

I want to send an HTML email with PHP. I was wondering what headers should be used in the email to ensure it doesn't get blocked or end up in SPAM folders.

电子邮件内容将包含CSS和HTML.回复字段将不同于发件人的字段(这会影响什么吗?)

The email contents will contain CSS and HTML. The reply-to field will be different than the sender's ( will this affect anything? )

我不知道为什么我的问题被否决.无论如何,我不希望通过电子邮件发送垃圾邮件或邮件列表.我希望回复字段不同于发件人的原因是因为我正在创建一个Web应用程序,用户可以在其中管理来自各个客户端的作业.每当更新或创建工作时,应用程序都会自动将有关工作更新的电子邮件发送给客户端.然后,客户可以回复电子邮件以与用户联系-这就是为什么我需要回复"字段作为用户的电子邮件地址.

I don't know why my question was voted down. Anyway, I'm not looking to email SPAM or mailing lists. The reason why I want the reply-to field to be different than the sender is because I'm creating a web app where a user manages jobs from various clients. Whenever a job is updated or created, the app will automatically send an email regarding job updates to the client. The client can then reply to the email to contact the user - that's why I need the reply-to field to be the user's email address.

推荐答案

有很多不同的因素要考虑是否阻止电子邮件,标头起着作用,但也要考虑的因素是:

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:

  • 每天发送的电子邮件数量持续稳定(每月发送100,000次,每天会损害您的声誉超过100,000次)
  • 如果您经常通过电子邮件发送退信地址
  • 您是否在收件人的安全发件人列表上
  • 您要发送给的电子邮件提供商
  • 各种DNS设置,例如您是从IP注册到的域发送电子邮件
  • 您是否经常通过电子邮件发送无效地址
  • 您是否已被黑名单公司之一列入黑名单
  • 其他各种电子邮件提供商机制,例如yahoo的域密钥
  • 电子邮件的内容,请避免使用FREE,MONEY和LUCKY之类的短语
  • 是否包括退订链接(必须提供一种退出电子邮件的简便方法)
  • 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.

这篇关于使用PHP发送电子邮件并确保它不会被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆