我可以通过 web.config 文件为邮件服务器设置 ntlm 身份验证吗?



是否可以指定要使用 system.net 对 SMTP 使用 NTLM 身份验证,全部通过 web.config 文件?如果是这样,需要做什么?

有人告诉我,如果 SMTP 服务器需要,添加以下内容将导致使用 NTLM 或 Kerberos,但我们的 SMTP 服务器未进行身份验证。(我不是SMTP专家)。

<configuration>
<system.net>
    <mailSettings>
        <smtp>
            <network host="yourhost.com" userName="user@yourhost.com" password="yourpassword" port="yourport" defaultCredentials="true" />
        </smtp>
    </mailSettings>
</system.net>

例如,是否应该指定身份验证模块?

你可以看看这个博客

最新更新