【发布时间】:2019-05-06 08:39:12
【问题描述】:
我正在尝试在我的 laravel 站点中使用 office 365,但由于某种原因,它不起作用,并且我在 laravel.log 中看到以下错误:
[2018-12-04 20:50:59] production.ERROR: Expected response code 354 but got
code "503", with message "503 5.5.1 Bad sequence of commands
" {"exception":"[object] (Swift_TransportException(code: 503): Expected
response code 354 but got code \"503\", with message \"503 5.5.1 Bad
sequence of
commands \" at
/home/forge/owlcrest.co.za/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Tra
nsport/AbstractSmtpTransport.php:457)
[stacktrace]
我正在使用 forge 托管网站。
所有 smtp 详细信息都在 .env 中
MAIL_DRIVER=smtp
MAIL_HOST=smtp.office365.com
MAIL_PORT=587
MAIL_USERNAME=email@odestdf.com.za
MAIL_PASSWORD=fakepasword
MAIL_ENCRYPTION=STARTTLS
我什至尝试将加密更改为“tls”,但仍然看到相同的错误。
以前有人经历过吗?
已编辑:
一切正常,但是当我看到尝试发送电子邮件时突然看到以下错误:
Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SubmissionQuotaE$
" {"exception":"[object] (Swift_TransportException(code: 554): Expected response code 250 but got code \"554\", with message \"554 5.2.0 STOREDRV.Submission.$
\" at /home/forge/owlcrest.co.za/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:457)
现在我完全糊涂了。
【问题讨论】: