SmtpSection Class

Definition

Represents the SMTP section in the System.Net configuration file.

public sealed class SmtpSection : System.Configuration.ConfigurationSection
Inheritance

Remarks

This class provides programmatic access to information that can be stored in configuration files that are used by classes that support SMTP in the System.Net.Mail namespace.

Constructors

SmtpSection()

Initializes a new instance of the SmtpSection class.

Properties

DeliveryFormat

Gets or sets the delivery format to use for sending outgoing e-mail using the Simple Mail Transport Protocol (SMTP).

DeliveryMethod

Gets or sets the Simple Mail Transport Protocol (SMTP) delivery method. The default delivery method is Network.

From

Gets or sets the default value that indicates who the email message is from.

Network

Gets the configuration element that controls the network settings used by the Simple Mail Transport Protocol (SMTP). file.SmtpNetworkElement.

SpecifiedPickupDirectory

Gets the pickup directory that will be used by the SMPT client.

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
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
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
DeserializeSection(XmlReader) Inherited from ConfigurationSection
GetRuntimeObject() Inherited from ConfigurationSection
IsModified() Inherited from ConfigurationSection
ResetModified() Inherited from ConfigurationSection
SectionInformation Inherited from ConfigurationSection
SerializeSection(ConfigurationElement, String, ConfigurationSaveMode) Inherited from ConfigurationSection
ShouldSerializeElementInTargetVersion(ConfigurationElement, String, FrameworkName) Inherited from ConfigurationSection
ShouldSerializePropertyInTargetVersion(ConfigurationProperty, String, FrameworkName, ConfigurationElement) Inherited from ConfigurationSection
ShouldSerializeSectionInTargetVersion(FrameworkName) Inherited from ConfigurationSection
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