SmtpMailSettingsSection Class

Contains Simple Mail Transfer Protocol (SMTP) configuration settings.

Syntax

class SmtpMailSettingsSection : ConfigurationSection  

Methods

The following table lists the methods exposed by the SmtpMailSettingsSection class.

Name Description
GetAllowDefinition (Inherited from ConfigurationSection.)
GetAllowLocation (Inherited from ConfigurationSection.)
RevertToParent (Inherited from ConfigurationSection.)
SetAllowDefinition (Inherited from ConfigurationSection.)
SetAllowLocation (Inherited from ConfigurationSection.)

Properties

The following table lists the properties exposed by the SmtpMailSettingsSection class.

Name Description
DeliveryMethod A read/write sint32 value that specifies the SMTP delivery method. The possible values are listed later in the Remarks section.
From A read/write string value that sets the From field in e-mails that are sent to users by using the SMTP mail APIs.
Location (Inherited from ConfigurationSection.) A key property.
Network A read/write SmtpNetworkSettings value that represents a network element in the SMTP configuration file.
Path (Inherited from ConfigurationSection.) A key property.
SectionInformation (Inherited from ConfigurationSection.)
SpecifiedPickupDirectory A read/write SmtpSpecifiedPickupDirectorySettings value that specifies the pickup directory that will be used by the SMTP client.

Subclasses

This class contains no subclasses.

Remarks

The following table lists the possible values for the DeliveryMethod property. The default is 0 (Network).

Value Keyword Description
0 Network E-mail is sent through the network to an SMTP server.
1 SpecifiedPickupDirectory E-mail is copied to the pickup directory that is used by a local IIS server for delivery.
2 PickupDirectoryFromIis E-mail is copied to the directory specified by the SpecifiedPickupDirectory property for delivery by an external application.

Inheritance Hierarchy

ConfigurationSection

SmtpMailSettingsSection

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

ConfigurationSection Class
SmtpNetworkSettings Class
SmtpSpecifiedPickupDirectorySettings Class