似乎拉拉维尔没有从森德格 SMTP 发送电子邮件


seems like laravel not sending email from sendgrid smtp

我正在使用此配置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发送到垃圾邮件,请参阅此内容

Gmailthis message was not encryptedGmail couldn't verify that test.com actually sent this message.我也检查了我的sendgrid帐户,但没有使用电子邮件。

您需要完成白标配置过程,以便授权 SendGrid 代表您要使用的域发送电子邮件。这包括确保您具有允许 SPF 和 DKIM 检查通过的 DNS 条目。您可以通过 SendGrid 文档了解更多信息。