【问题标题】:how to fix Expected response code 354 but got code "503"如何修复预期的响应代码 354 但得到代码“503”
【发布时间】:2019-04-05 12:39:18
【问题描述】:

我得到 { 预期的响应代码 354 但得到代码“503”,消息“503-所有 RCPT 命令都被拒绝并出现此错误:503-”您的 IP:182.70..*:您的标头 503 中不允许域 example.com-From" 503 Valid RCPT command must before DATA" }

我也在使用 laravel 邮件功能,效果很好。

检查了我的 .env 邮件驱动程序设置。

MAIL_DRIVER=smtp
MAIL_HOST=mail.*****.com
MAIL_PORT=26
MAIL_USERNAME=careers@****.com
MAIL_PASSWORD=**********
MAIL_ENCRYPTION=null

预期结果:获得重设密码邮件

【问题讨论】:

    标签: php laravel authentication


    【解决方案1】:

    确保 config/mail.php 上的“发件人”地址是正确的电子邮件地址并且存在于您的服务器上

    'from' => [
            'address' => env('MAIL_FROM_ADDRESS', 'careers@****.com'), 
            'name' => env('MAIL_FROM_NAME', 'MyAppName'),
        ],
    

    记得清除缓存后记

    php artisan config:clear
    php artisan config:cache
    

    【讨论】:

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