Failed to authenticate on SMTP server with username "user@email.com" using 3 possible authenticators. Authenticator LOGIN 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 70sm7122401qkk.10 - 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 70sm7122401qkk.10 - 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 70sm7122401qkk.10 - gsmtp
".
早上好,我正在尝试连接Gmail Smtp,上面是我在laravel 5.8中得到的错误,我在我的个人邮件上生成了应用程序密码,然后发送电子邮件起作用了,但是当我在工作邮件上生成应用程序密码时,我立即得到了错误。也就是说,当我使用具有应用程序密码的个人邮件时,一切正常,但一旦我使用工作邮件,我就会立即收到一个错误。
在这两个邮箱上,我执行了以下操作,如Google support https://support.google.com/accounts/answer/185833 https://support.google.com/mail/?p=BadCredentials中所述
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=user@email.com
MAIL_PASSWORD=generatedAppPassword
MAIL_ENCRYPTION=tls
所以如果你能帮我做这件事,我会非常感谢
发布于 2020-06-05 20:58:46
请确保您的帐户已启用“访问安全性较低的应用程序”,并且未启用2fa登录。
发布于 2020-06-05 21:20:22
我有同样的问题,我在下面解决了这个用法
转到gmail.com
我的账号
并启用
允许安全性较低的应用程序:打开
它开始工作了
https://stackoverflow.com/questions/62215749
复制相似问题