【问题标题】:Expected Response code 250 but got code " ", with messae laravel预期响应代码 250 但得到代码“”,带有消息 laravel
【发布时间】:2018-05-03 15:34:09
【问题描述】:

我已经在其他 localhost 服务器上测试了我的 smpt 设置,它运行良好! 但是在我的本地主机上,我收到了这个错误

我的设置

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=25
MAIL_USERNAME=example@gmail.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=ssl

请指教我哪里错了

【问题讨论】:

标签: php laravel sendmail


【解决方案1】:

进行这些更改

MAIL_ENCRYPTION=ssl
MAIL_PORT=587

运行这个命令

sudo php artisan config:cache
sudo php artisan cache:clear

重启服务器并立即运行

【讨论】:

    猜你喜欢
    • 2017-02-12
    • 2019-05-07
    • 2015-09-16
    • 1970-01-01
    • 2016-08-14
    • 2017-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多