【发布时间】: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