语言

SMTPConn.UseWindowsAuthentication 属性

定义

获取或设置一个布尔值,指示是否使用Windows认证访问SMTP服务器。

public:
 property bool UseWindowsAuthentication { bool get(); void set(bool value); };
public bool UseWindowsAuthentication { get; set; }
member this.UseWindowsAuthentication : bool with get, set
Public Property UseWindowsAuthentication As Boolean

属性值

true表示使用Windows认证来认证对服务器的访问。 false 表示未使用 Windows 认证。

注解

使用 Microsoft Exchange 作为 SMTP 服务器时,可能需要设置 UseWindowsAuthenticationtrue 大多数 Exchange 服务器配置为不允许未经认证的 SMTP 连接。

适用于