发送电子邮件时不支持身份验证方法

No supported authentification method when sending email

我尝试使用 SMTP 服务器发送电子邮件,但我不能。 我收到此消息:

SMTP-AUTH: No mutually supported authentication methods available
Authentification Failed

所以我使用 telnet 连接到服务器。

telnet server 2526
ehlo server
250-server Hello [xxx.xxx.xxx.xxx]
250-SIZE 36700160
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH
250-8BITMIME
250-BINARYMIME
250 CHUNKING

我认为服务器没有配置好,因为没有 STARTTLS 选项(它是 Microsoft Exchange 服务器)。我有点困惑,因为有 AUTH 选项,但我不知道它是什么意思。感谢您的帮助。

服务器可能设置为不允许身份验证。 只需尝试在没有任何身份验证的情况下发送 e-mail,例如使用 sendEmail

sendEmail.exe -f a@b.com -t b@c.com -u "SampleSubject" -m "SampleBody" -s smtp.xxx.com:25 -v 

验证方法在RFC 4954

中定义