我正在使用此配置laravel
邮件,
return array(
'driver' => 'mail',
'host' => 'smtp.sendgrid.net',
'from' => array('address' => 'info@from.com', 'name' => 'test'),
'encryption' => 'tls',
'username' => 'sendgrid_username',
'password' => 'sendgrid_password
);
邮件正在接收,但问题gmail
发送到垃圾邮件,请参阅此内容
Gmail
说this message was not encrypted
和Gmail couldn't verify that test.com actually sent this message
.我也检查了我的sendgrid
帐户,但没有使用电子邮件。
您需要完成白标配置过程,以便授权 SendGrid 代表您要使用的域发送电子邮件。这包括确保您具有允许 SPF 和 DKIM 检查通过的 DNS 条目。您可以通过 SendGrid 文档了解更多信息。