我有这样的代码:Laravel 5.1 - Swift_TransportException - 不能在.ENV文件发送电子邮件
MAIL_DRIVER = SMTP
MAIL_HOST=smtp.sendgrid.net MAIL_PORT=587 [email protected] MAIL_PASSWORD=hggahsd666 MAIL_ENCRYPTION=tls
,我得到这个画面:
I也尝试:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=hggahsd666
MAIL_ENCRYPTION=ssl
,但不要再工作......
我也尝试改变设置成配置/ mail.php是一样的.ENV文件,但不工作,并在年底我尝试命令
php artisan cache:clear
是可能出现的问题的原因重定向到安全域https://asdasd.com/sendEmail?
我也尝试用MAIL_ENCRYPTION = NULL却又不工作 –
没有,offcource :) –
的可能的复制[预计响应代码250,但得到的代码“”,与消息“”](http://stackoverflow.com/questions/31133301/expected-response-code-250-but-got-code-with-message) – Nil