用内置的邮箱验证机制通不过,我换成 PHPemailer 都可以?
Failed to authenticate on SMTP server with username "972927032@qq.com" using 1 possible authenticators
一直会报这个错,我换成PHPmailer就可以
我是读取相同的配置参数的,注释的代码是我自己写的PHPmailer函数
// $this->sendEmail($view, $data, $to, $subject);
Mail::send($view, $data, function ($message) use ($to, $subject) {
$message->to($to)->subject($subject);
});
推荐文章: