【问题标题】:Laravel Password reset causing Swift_TransportException errorLaravel 密码重置导致 Swift_TransportException 错误
【发布时间】:2020-01-12 21:43:05
【问题描述】:

我正在构建我的第一个 Laravel 6 项目。只需将我的电子邮件设置放在 .env 文件中,它就可以在我的本地运行,我使用密码重置对其进行了测试,因为它似乎是生成电子邮件的最简单方法。在我的实时服务器上的 .env 文件中使用相同的电子邮件设置,它实际上与设置中引用的邮件服务器位于同一服务器上,当我尝试在那里进行密码重置时,我得到:

Swift_TransportException

Failed to authenticate on SMTP server with username "xx@xxx.com" using 3 possible authenticators. 
Authenticator CRAM-MD5 returned Expected response code 235 but got code "535", with message "535
authentication failed (#5.7.1)". Authenticator LOGIN returned Expected response code 250 but got
code "535", with message "535 authentication failed (#5.7.1)". Authenticator PLAIN returned Expected 
response code 250 but got code "501", with message "501 malformed auth input (#5.5.4)".

vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:191

知道要采取什么步骤来调试问题吗?谢谢!

【问题讨论】:

  • 明确说明环境设置错误,确定不缓存配置?

标签: php laravel swiftmailer


【解决方案1】:

其他人帮助了我...由于 YAML 中的一个怪癖,无论出于何种原因,在我的实时服务器上,.env 中的 MAIL_PASSWORD 需要用引号引起来,这在我的本地无关紧要。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-11
    • 1970-01-01
    • 1970-01-01
    • 2014-12-04
    • 2016-03-07
    • 1970-01-01
    相关资源
    最近更新 更多