使用 Laravel-5.8 发送通知,我收到此错误:
\n\nFailed to authenticate on SMTP server with username "noblemfd@gmail.com" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 23 \xe2\x96\xb6\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials n13sm8684140wmd.21 - gsmtp\n". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 \nUsername and Password not accepted. Learn more at\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials n13sm8684140wmd.21 - gsmtp\n". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 \nUsername and Password not accepted. Learn more at\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials n13sm8684140wmd.21 - gsmtp\nRun Code Online (Sandbox Code Playgroud)\n\n之前是可以用的,但是突然就不行了
\n\n这是我的.env
\n\nMAIL_DRIVER=smtp\nMAIL_HOST=smtp.gmail.com\nMAIL_PORT=465\nMAIL_USERNAME=noblemfd@gmail.com\nMAIL_PASSWORD=****\nMAIL_ENCRYPTION=ssl\nRun Code Online (Sandbox Code Playgroud)\n\n我该怎么办?
\n\n谢谢
\n我今天也遇到和你一样的问题。几个月来,smtp 一直运行良好,今天突然出现了与您相同的错误。
对于它的价值,我简单地解决了,在 google 中重新生成密码Account -> Security -> App passwords。
这不是我第一次遇到这种情况。也许这是某种谷歌保护......但我没有在任何地方找到这方面的证据。无论如何,这很烦人。
我想知道的是如何捕获这种错误以便我们能够及时干预。
| 归档时间: |
|
| 查看次数: |
23470 次 |
| 最近记录: |