【发布时间】: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 的“安全默认值”。我已将其关闭。
可能出了什么问题?
【问题讨论】:
-
您可能尝试过,但可能吗? -> support.microfocus.com/kb/doc.php?id=7020367
-
你使用过加密吗:加密:STARTTLS