SmtpNetworkElement
Class
Definition
Represents the network element in the SMTP configuration file. This class cannot be inherited.
public sealed class SmtpNetworkElement : System.Configuration.ConfigurationElement
- Inheritance
Inherited Members
System.Configuration.ConfigurationElement
System.Object
Remarks
Use this class to configure an SMTP client.
Constructors
| SmtpNetworkElement() |
Initializes a new instance of the SmtpNetworkElement class. |
Properties
| ClientDomain |
Gets or sets the client domain name used in the initial SMTP protocol request to connect to an SMTP mail server. |
| DefaultCredentials |
Determines whether or not default user credentials are used to access an SMTP server. The default value is |
| EnableSsl |
Gets or sets whether SSL is used to access an SMTP mail server. The default value is |
| 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. |
| TargetName |
Gets or sets the Service Provider Name (SPN) to use for authentication when using extended protection to connect to an SMTP mail server. |
| UserName |
Gets or sets the user name to connect to an SMTP mail server. |