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
SmtpNetworkElement

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 false.

EnableSsl

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.

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.

Methods

CurrentConfiguration Inherited from ConfigurationElement
DeserializeElement(XmlReader, Boolean) Inherited from ConfigurationElement
ElementInformation Inherited from ConfigurationElement
ElementProperty Inherited from ConfigurationElement
Equals(Object) Inherited from ConfigurationElement
EvaluationContext Inherited from ConfigurationElement
GetHashCode() Inherited from ConfigurationElement
GetTransformedAssemblyString(String) Inherited from ConfigurationElement
GetTransformedTypeString(String) Inherited from ConfigurationElement
HasContext Inherited from ConfigurationElement
Init() Inherited from ConfigurationElement
InitializeDefault() Inherited from ConfigurationElement
IsModified() Inherited from ConfigurationElement
IsReadOnly() Inherited from ConfigurationElement
Item[ConfigurationProperty] Inherited from ConfigurationElement
Item[String] Inherited from ConfigurationElement
ListErrors(IList) Inherited from ConfigurationElement
LockAllAttributesExcept Inherited from ConfigurationElement
LockAllElementsExcept Inherited from ConfigurationElement
LockAttributes Inherited from ConfigurationElement
LockElements Inherited from ConfigurationElement
LockItem Inherited from ConfigurationElement
OnDeserializeUnrecognizedAttribute(String, String) Inherited from ConfigurationElement
OnDeserializeUnrecognizedElement(String, XmlReader) Inherited from ConfigurationElement
OnRequiredPropertyNotFound(String) Inherited from ConfigurationElement
PostDeserialize() Inherited from ConfigurationElement
PreSerialize(XmlWriter) Inherited from ConfigurationElement
Properties Inherited from ConfigurationElement
Reset(ConfigurationElement) Inherited from ConfigurationElement
ResetModified() Inherited from ConfigurationElement
SerializeElement(XmlWriter, Boolean) Inherited from ConfigurationElement
SerializeToXmlElement(XmlWriter, String) Inherited from ConfigurationElement
SetPropertyValue(ConfigurationProperty, Object, Boolean) Inherited from ConfigurationElement
SetReadOnly() Inherited from ConfigurationElement
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode) Inherited from ConfigurationElement
Equals(Object, Object) Inherited from Object
GetType() Inherited from Object
MemberwiseClone() Inherited from Object
ReferenceEquals(Object, Object) Inherited from Object
ToString() Inherited from Object

Applies to