【发布时间】:2020-06-11 18:47:17
【问题描述】:
使用 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
我该怎么办?
谢谢
【问题讨论】:
-
您最近是否使用该 gmail 帐户启用了 2 因素身份验证?
-
@CanCelik - 是的,我做到了。我启用了它。
-
请查看您的问题的答案 => stackoverflow.com/questions/26736062/…
-
这能回答你的问题吗? How to to send mail using gmail in Laravel?
标签: laravel