Laravel 配置 QQ 邮箱提示:Failed to authenticate on SMTP server with username "xxxxxx" using 1 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "
admin 阅读:113 2024-03-03
Laravel配置QQ邮箱提示:Failed to authenticate on SMTP server with username “xxxxxx” using 1 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code “535”, with message “535 Login Fail. Please enter your authorization code to login错误,错误截图如下:

产生这个错误的原因是QQ邮箱为了保证安全,提供了授权码来代替密码,而我们在配置Email时,password项填写的仍然是QQ邮箱密码而不是授权码。
解决方法就是将password设置为QQ邮箱的授权码,如果不知道怎么获取授权码可以参考:Laravel8配置QQ邮箱进行邮件发送教程。
声明
1、部分文章来源于网络,仅作为参考。 2、如果网站中图片和文字侵犯了您的版权,请联系1943759704@qq.com处理!

