Laravel SwiftMailer:预期响应代码为 250,但得到代码
本文介绍了Laravel SwiftMailer:预期响应代码为 250,但得到代码“530",消息为“530-5.5.1 需要身份验证"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 laravel 5.2,并且使用 Swift Mailer 进行密码重置.我的 Gmail 有两步验证..
I am using laravel 5.2, And the using Swift Mailer for password resetting. I have 2-step verification on my gmail..
正如谷歌帮助所说:
如果您为自己的帐户启用了两步验证,则可能需要输入应用密码而不是常规密码.
If you've turned on 2-Step Verification for your account, you might need to enter an App password instead of your regular password.
我在 mail.php
上有以下设置:
I have the following settings on mail.php
:
在 .env
我有:
出现以下错误:
推荐答案
尝试在 此页面.阅读这个谷歌答案.
这篇关于Laravel SwiftMailer:预期响应代码为 250,但得到代码“530",消息为“530-5.5.1 需要身份验证"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!