Failed to authenticate on SMTP server with username "[email protected]" 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支持中进行了介绍https://support.google.com/accounts/answer/185833https://support.google.com/mail/?p=BadCredentials
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=generatedAppPassword
MAIL_ENCRYPTION=tls
因此,如果您能帮助我做到这一点,我将非常感谢
确保您的帐户已启用“访问不太安全的应用程序”,并且未启用2fa登录。
我有相同的问题,我可以根据以下方法解决此问题
转到gmail.com
我的帐户
并启用
允许不太安全的应用程序:开
开始工作