【问题标题】:How to send Laravel Mail using Outlook?如何使用 Outlook 发送 Laravel 邮件?
【发布时间】:2023-04-06 02:58:01
【问题描述】:

我想在用户注册时发送邮件,但出现此错误。

Failed to authenticate on SMTP server with username "*****" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful ". Authenticator NTLM returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful ".

我该如何解决这个问题?

这是我的邮件配置:

MAIL_DRIVER=smtp
MAIL_HOST=*****
MAIL_PORT=25
MAIL_USERNAME=****
MAIL_PASSWORD=****
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=covid19@sante.gouv.dj

【问题讨论】:

    标签: laravel laravel-mail


    【解决方案1】:

    如果这是针对 Office 365 的(因为您将问题标记为“outlook”,即使它与 Outlook 无关),那么您需要在端口 587 上使用 TLS 连接到 smtp.office365.com。身份验证是 OAuth2。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-08-12
    • 2014-09-09
    • 2018-12-16
    • 1970-01-01
    • 2019-06-28
    • 2022-12-10
    • 2020-11-19
    • 1970-01-01
    相关资源
    最近更新 更多