Laravel 5.1 发送Email问题

.env文件

MAIL_DRIVER=smtp
MAIL_HOST=smtp.163.com
MAIL_PORT=25
MAIL_USERNAME=******
MAIL_PASSWORD=******

config/mail.php 已经填写了,发送邮件的时候
错误提示:

Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required
"

请问怎么解决这问题???

这种基本就是密码不对或者 163 限制了

JellyBool

这种基本就是密码不对或者 163 限制了

假如_丶 回复 JellyBool

php artisan serve得重新开一下就好了…

xinhaonaner

我这个也是Laravel 5.1:
Swift_TransportException in StreamBuffer.php line 269:
Connection could not be established with host smtp.163.com [Connection timed out #110]
这个错误,是什么原因知道 吗?

假如_丶 回复 xinhaonaner

基本与JellyBool说的情况一样,但是你修改完之后需要重启下服务就好了…