【问题标题】:Error with sending password reset email Laravel 5.4发送密码重置电子邮件 Laravel 5.4 时出错
【发布时间】:2017-09-02 20:31:08
【问题描述】:

这是第一次配置邮件发送密码重置。我检查了不太安全的活动。我收到此错误

Expected response code 250 but got code "530", with message "530 5.7.0 
Must issue a STARTTLS command first. g63sm30213782wme.11 - gsmtp"

这是我的配置

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=hmshafik10@gmail.com
MAIL_PASSWORD=***********
MAIL_ENCRYPTION=tls

更新 尝试在 config/mail.php 中使用设置邮件数据。现在我收到此错误

Expected response code 250 but got code "530", with message "530-5.5.1 
Authentication Required. Learn more at 530 5.5.1 
https://support.google.com/mail/?p=WantAuthError u189sm6330267wmg.18 - gsmtp"

【问题讨论】:

标签: laravel email


【解决方案1】:

也可能是您实际上没有从 .env 文件中获取这些变量。

编辑 .env 文件时,您必须使用

清除缓存
php artisan cache:clear 

如果你正在运行它,也许最好的办法是重新启动应用程序

php artisan serve

然后停止它并重新运行

【讨论】:

    猜你喜欢
    • 2017-08-31
    • 1970-01-01
    • 2016-03-01
    • 1970-01-01
    • 2017-11-12
    • 2015-11-26
    • 2010-11-21
    • 2018-02-01
    • 2019-03-12
    相关资源
    最近更新 更多