使用Laravel-5.8发送通知,我得到了这个错误:
Failed to authenticate on SMTP server with username "noblemfd@gmail.com" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 23 ▶
535 5.7.8 https://support.google.com/mail/?p=BadCredentials n13sm8684140wmd.21 - gsmtp
". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8
Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials n13sm8684140wmd.21 - gsmtp
". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8
Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials n13sm8684140wmd.21 - gsmtp
它以前是有效的,但突然开始不正常。
这是我的.env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=noblemfd@gmail.com
MAIL_PASSWORD=****
MAIL_ENCRYPTION=ssl
我做什么好?
谢谢
发布于 2020-06-08 17:52:05
今天我也有和你一样的问题。几个月来,smtp一直工作得很好,今天突然间,它给了我同样的错误。
为了它的价值,我简单地解决了,在google Account -> Security -> App passwords
中重新生成密码。
这已经不是第一次发生在我身上了。也许这是谷歌的某种保护。但我在任何地方都找不到证据。不管怎么说,这是非常烦人的。
我想知道的是,如何捕获这种错误,以便我们可以及时进行干预。
https://stackoverflow.com/questions/60438594
复制相似问题