邮件发送一直提示错误,怎么处理,用的是内置的邮件发送类?
Failed to authenticate on SMTP server with username "972927032@qq.com" using 1 possible authenticators
试过好几个帐号,包括线上运营的亚马逊邮件服务器帐号,之前用PHPmailer是可以的
我是用
Mail::send($view, $data, function ($message) use ($from, $name, $to, $subject) {
$message->from($from, $name)->to($to)->subject($subject);
});
ENV文件是
MAIL_DRIVER=smtp
MAIL_HOST=smtp.qq.com
MAIL_PORT=25
MAIL_USERNAME=972927032@qq.com
MAIL_PASSWORD=xxx
MAIL_ENCRYPTION=null
推荐文章: