如何修复预期的响应代码354,但得到的代码为“ 503”

时间:2019-04-05 12:39:18

标签: php laravel authentication

我得到{预期的响应代码354,但得到的代码为“ 503”,并显示消息“ 503-拒绝所有RCPT命令,并出现以下错误:503-”您的IP:182.70。。* :您的标头503中不允许使用域example.com-发件人”“ 503”有效的RCPT命令必须在数据“”之前

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

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

<p>Device.name.id</p> <input type="text" th:field="*{name[0]}"/> //Default
<p>Device.Type.id</p> <input type="text" th:field="*{type[0]}"/> //Default

<p>Device.name.id</p> <input type="text" th:field="*{name[1]}"/> //Generate Dynamically
<p>Device.Type.id</p> <input type="text" th:field="*{type[1]}"/> //Generate Dynamically
.
.
.
<p>Device.name.id</p> <input type="text" th:field="*{name[n]}"/> //Generate Dynamically
<p>Device.Type.id</p> <input type="text" th:field="*{type[n]}"/> //Generate Dynamically

预期结果:获取重置密码邮件

1 个答案:

答案 0 :(得分: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