避免帐户确认电子邮件的垃圾邮件过滤器

问题描述:

我有一个用 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?

与其从网站运行的服务器发送邮件,不如使用受信任的外部邮件服务器.你可以用 Swift_SmtpTransport 做到这一点.

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.

您甚至可以为此目的使用您的 Gmail 帐户:http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails#chapter_04_sub_sending_emails_via_gmail

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