【问题标题】:Getting error "Failed to authenticate on SMTP server with username" on Laravel在 Laravel 上出现错误“无法使用用户名在 SMTP 服务器上进行身份验证”
【发布时间】:2020-01-12 21:32:55
【问题描述】:

我正在使用 laravel 实现电子邮件发送门户,但它给了我一个错误,如下所示:

535 5.7.8  https://support.google.com/mail/?p=BadCredentials v21sm1478030pjy.3 - 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 v21sm1478030pjy.3 - 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 v21sm1478030pjy.3 - gsmtp
".

【问题讨论】:

  • 在 .env 文件中再次检查您的凭据,或在此处粘贴您的 .env 文件邮件部分。你使用 gmail 邮件吗?如果是,你是否生成了 api 密钥
  • 我已经更改了我的电子邮件安全性,现在它对我来说工作正常。谢谢!!!!

标签: laravel email


【解决方案1】:

确保您没有将2-Step Verification 设置为开启,然后在浏览器上登录电子邮件帐户然后click this链接以允许不太安全的应用连接到您的 GMail 帐户。

【讨论】:

  • @SoftTechnoes 欢呼芽。如果它解决了您的问题,请点赞。
猜你喜欢
  • 2020-06-11
  • 2019-03-11
  • 2018-01-13
  • 2019-10-06
  • 2021-06-11
  • 1970-01-01
  • 2020-08-07
  • 1970-01-01
  • 2020-03-10
相关资源
最近更新 更多