1
我正在关注Sendgrid laravel integration using smtp以发送电子邮件。Laravel - Sendgrid smtp错误“550未经身份验证的发件人不允许”
我按照文档说的那样做了,所有凭证都和我的sendgrid证书一样。
但每当我尝试发送电子邮件时使用,
Mail::send('mails.demo', $data, function($message)
{
$message->to('[email protected]', 'test')->subject('This is a test mail!');
});
它显示误差
Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 250 but got code "550", with message "550 Unauthenticated senders not allowed
"
我可以用用Telnet guide sendgrid测试,完美的作品发送电子邮件。
你的“发件人”地址应该与conf/mail.php中的smtp配置相匹配。 – Vineesh
你可以发布你的配置文件,凭证模糊吗? – yivi
您使用的“发件人”地址是否与sendgrid的注册“发件人”地址相匹配? – yivi