Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
---|---|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(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
SmtpMailSettingsSection
Requirements
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |
See Also
Reference
ConfigurationSection Class [IIS 7 and higher]
SmtpNetworkSettings Class [IIS 7 and higher]
SmtpSpecifiedPickupDirectorySettings Class [IIS 7 and higher]