2017-04-07 135 views
0

这是第一次配置邮件发送密码重置。我检查得不到保证是活跃的。我收到此错误错误与发送密码重置电子邮件Laravel 5.4

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 
[email protected] 
MAIL_PASSWORD=*********** 
MAIL_ENCRYPTION=tls 

更新 试图在配置/ 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" 
+0

的可能的复制[Laravel SwiftMailer:预期响应码250,但得到的代码“530”,与消息“530-5.5.1要求进行验证](http://stackoverflow.com/questions/37469770/laravel-swiftmaile R-预期 - 响应 - 代码-250-丁得到码-530与 - messag) – Ian

+1

的可能的复制[Laravel 5:发送电子邮件(http://stackoverflow.com/questions/31378357/laravel-5-发送电子邮件) – aleksejjj

回答

0

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

当编辑.ENV文件,你必须清除缓存,

php artisan cache:clear 

,也许是最好的事情是,如果你是

php artisan serve 

然后停止并重新运行运行它重新启动应用程序再次

相关问题