所以我创建了一个名为Enable Rochester的laravel应用程序,该应用程序实质上是我所在城市的个人目录。在应用程序中,用户可以通过提交带有主题和消息字段的受验证码保护的表单来联系目录中的其他用户,然后将该表单发送给收件人。
为了允许用户彼此联系,我使用发件人电子邮件作为电子邮件签名内的ReplyTo电子邮件和发件人电子邮件,这似乎是一个问题,因为所有发送的电子邮件都已发送给用户垃圾邮件。在下面查看电子邮件签名:
from: Solomon Antoine <antoinesolomon5@gmail.com> via sendgrid.net
reply-to: Solomon Antoine <antoinesolomon5@gmail.com>
to: contact@askfavr.com
date: Feb 27, 2019, 11:31 AM
subject: Coffee and Greet for Favr
mailed-by: em3247.enablerochester.com
signed-by: enablerochester.com
security: Standard encryption (TLS) Learn more
我尝试减轻此问题的第一步是将发件人身份验证从 sendgrid.net 更改为我的域 enablerochester.com ,如下所示:
from: Solomon Antoine <antoinesolomon5@gmail.com> via enablerochester.com
reply-to: Solomon Antoine <antoinesolomon5@gmail.com>
to: solomon@askfavr.com
date: Feb 27, 2019, 11:50 AM
subject: Testing with new domain
mailed-by: em3247.enablerochester.com
signed-by: enablerochester.com
security: Standard encryption (TLS) Learn more
在这种情况下,我尝试使用我自己的域将发件人电子邮件更改为自定义发件人电子邮件,如下所示:
from: Solomon Antoine <antoinesolomon51@enablrochester.com> via enablerochester.com
reply-to: Solomon Antoine <antoinesolomon5@gmail.com>
to: support@askfavr.com
date: Feb 27, 2019, 11:59 AM
subject: Another test
mailed-by: em3247.enablerochester.com
signed-by: enablerochester.com
security: Standard encryption (TLS) Learn more
我引用了另一个How do you make sure email you send programmatically is not automatically marked as spam?,它提供了上述步骤,但是它提供的解决方案不起作用。