SmtpNetworkElement.Password Property

Definition

Gets or sets the user password to use to connect to an SMTP mail server.

[System.Configuration.ConfigurationProperty("password")]
public string Password { get; set; }
Property Value

A string that represents the password to use to connect to an SMTP mail server.

Remarks

Setting DefaultCredentials takes precedence over setting UserName and Password. UserName and Password are used only if DefaultCredentials is set to false.

Applies to