Smtp​Network​Element Class

Definition

Represents the network element in the SMTP configuration file. This class cannot be inherited.

public sealed class SmtpNetworkElement : System.Configuration.ConfigurationElement
Inheritance
SmtpNetworkElement

Inherited Members

System.Configuration.ConfigurationElement

System.Object

Remarks

Use this class to configure an SMTP client.

Constructors

Smtp​Network​Element()

Initializes a new instance of the SmtpNetworkElement class.

Properties

Client​Domain

Gets or sets the client domain name used in the initial SMTP protocol request to connect to an SMTP mail server.

Default​Credentials

Determines whether or not default user credentials are used to access an SMTP server. The default value is false.

Enable​Ssl

Gets or sets whether SSL is used to access an SMTP mail server. The default value is false.

Host

Gets or sets the name of the SMTP server.

Password

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

Port

Gets or sets the port that SMTP clients use to connect to an SMTP mail server. The default value is 25.

Properties
Target​Name

Gets or sets the Service Provider Name (SPN) to use for authentication when using extended protection to connect to an SMTP mail server.

User​Name

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

Methods

Post​Deserialize()