System
2.0.0.0
4.0.0.0
System.Configuration.ConfigurationElement
Use this class to configure an SMTP client.
Represents the network element in the SMTP configuration file. This class cannot be inherited.
Constructor
2.0.0.0
4.0.0.0
To be added.
Initializes a new instance of the class.
Property
2.0.0.0
4.0.0.0
System.Configuration.ConfigurationProperty("defaultCredentials", DefaultValue=Mono.Cecil.CustomAttributeArgument)
System.Boolean
To be added.
To be added.
Determines whether or not default user credentials are used to access an SMTP server. The default value is false.
Property
4.0.0.0
System.Configuration.ConfigurationProperty("enableSsl", DefaultValue=Mono.Cecil.CustomAttributeArgument)
System.Boolean
To be added.
The property indicates if SSL is used to access an SMTP mail server. The class only supports the SMTP Service Extension for Secure SMTP over Transport Layer Security as defined in RFC 3207. In this mode, the SMTP session begins on an unencrypted channel, then a STARTTLS command is issued by the client to the server to switch to secure communication using SSL. See RFC 3207 published by the Internet Engineering Task Force (IETF) for more information.
An alternate connection method is where an SSL session is established up front before any protocol commands are sent. This connection method is sometimes called SMTPS and by default uses port 465. This alternate connection method using SSL is not currently supported.
Gets or sets whether SSL is used to access an SMTP mail server. The default value is false.
Property
2.0.0.0
4.0.0.0
System.Configuration.ConfigurationProperty("host")
System.String
To be added.
To be added.
Gets or sets the name of the SMTP server.
Property
2.0.0.0
4.0.0.0
System.Configuration.ConfigurationProperty("password")
System.String
To be added.
Setting takes precedence over setting and . and are used only if is set to false.
Gets or sets the user password to use to connect to an SMTP mail server.
Property
2.0.0.0
4.0.0.0
System.Configuration.ConfigurationProperty("port", DefaultValue=Mono.Cecil.CustomAttributeArgument)
System.Int32
To be added.
To be added.
Gets or sets the port that SMTP clients use to connect to an SMTP mail server. The default value is 25.
Method
2.0.0.0
4.0.0.0
System.Void
To be added.
To be added.
Property
2.0.0.0
4.0.0.0
System.Configuration.ConfigurationPropertyCollection
To be added.
To be added.
To be added.
Property
4.0.0.0
System.Configuration.ConfigurationProperty("targetName", DefaultValue=Mono.Cecil.CustomAttributeArgument)
System.String
To be added.
The property allows an application to get or set the SPN to use for authentication when integrated Windows authentication with extended protection. If the property is not set, the default value for this SPN is of the form "SMTPSVC/<host>" where <host> is the hostname of the SMTP mail server.
The default value for this network element in the SMTP configuration file can also be changed by manually editing the machine or application configuration files directly.
Gets or sets the Service Provider Name (SPN) to use for authentication when using extended protection to connect to an SMTP mail server.
Property
2.0.0.0
4.0.0.0
System.Configuration.ConfigurationProperty("userName", DefaultValue=Mono.Cecil.CustomAttributeArgument)
System.String
To be added.
Setting takes precedence over setting and . and are used only if is set to false.
Gets or sets the user name to connect to an SMTP mail server.