避免帐户确认电子邮件的垃圾邮件过滤器
我有一个用 PHP/Symfony 构建的应用程序。其中一部分需要向用户发送本质上是帐户验证电子邮件。不幸的是,我的电子邮件似乎触发了垃圾邮件过滤器(gmail、hotmail,可能还有其他邮件),而没有进入用户的收件箱。
我可以使用哪些策略来避免被过滤?
I have an application built in PHP/Symfony. Part of it requires sending what is essentially an account verification email to users. Unfortunately, it seems that my email is triggering spam filters (gmail, hotmail, probably others) and not making it to the users inboxes.
What strategies can I use to avoid being filtered?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最好使用受信任的外部邮件服务器,而不是从运行网站的服务器发送邮件。您可以使用 Swift_SmtpTransport 来做到这一点。
您甚至可以使用您的 Gmail 帐户来实现此目的: http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails#chapter_04_sub_sending_emails_via_gmail
Rather than sending mail from the server where your website runs, it's better to use trusted external mail server. You can do that with Swift_SmtpTransport.
You can even use your gmail account for that purpose: http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails#chapter_04_sub_sending_emails_via_gmail
电子邮件过滤器使用不同的策略来检测自动生成的电子邮件。每个电子邮件过滤器都是不同的,但您最好的策略是确保您实际上创建的电子邮件严格符合电子邮件标准。包含所有相关标头。确保对国际字符等使用正确的编码。格式良好的电子邮件通常会获得更好的分数。
当然,使用信誉良好的电子邮件代理。
Email filters use different strategies for detecting autogenerated emails. Each email filter is different, but your best strategy would be to make sure that you actually creates an email that complies stricktly to the email standard. Include all relevant headers. Make sure that you use the correct encoding for international charachters etc. A well formed email will usually get a better score.
And of course use an email proxy with a good reputation.