【问题标题】:Getting SMTP 504 .5.7.4 "Unrecognized authentication type" trying to send a mail with Outlook 365获取 SMTP 504 .5.7.4“无法识别的身份验证类型”尝试使用 Outlook 365 发送邮件
【发布时间】:2021-08-05 13:58:27
【问题描述】:

我正在尝试设置使用 Office365 电子邮件帐户从我的 .net 站点发送电子邮件的功能。在我编写代码之前,我想确保它可以这样做,因此使用我从互联网上获得的 SMTP 调试工具。我不断收到504 5.7.4 Unrecognized authentication type 错误。

设置:

server: smtp.office365.com
Port: 587
User: myemail@mysite.com
Pass: mypassword
Requited Authentication: true
From Email: myemail@mysite.com
To Email: User: myemail@mysite.com

当我发布此请求时,我得到以下日志:

Connecting to mail server.
Connected.
220 abc.outlook.office365.com Microsoft ESMTP MAIL Service ready at Sat, 15 May 2021 19:22:41 +0000
EHLO EC2AMAZ-GODJD
250-abc.outlook.office365.com Hello [1.1.1.1]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
AUTH LOGIN
504 5.7.4 Unrecognized authentication type [abc.prod.exchangelabs.com]
Forcing disconnection from SMTP server.
QUIT
221 2.0.0 Service closing transmission channel
Disconnected.

我尝试过的 我读到 Outlook 具有阻止 SMTP 的“安全默认值”。我已将其关闭。

可能出了什么问题?

【问题讨论】:

标签: smtp office365


【解决方案1】:

我过去遇到过这个问题。我当时做的是启用STARTTLS,并声明认证将以纯文本形式发送。

让我知道它是否有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-02
    • 2013-01-26
    • 2019-02-09
    • 1970-01-01
    • 1970-01-01
    • 2017-09-07
    • 2020-09-13
    相关资源
    最近更新 更多