Export (0) Print
Expand All
Expand Minimize

SmtpMailSettingsSection Class [IIS 7 and higher]

IIS 7.0

Contains Simple Mail Transfer Protocol (SMTP) configuration settings.

class SmtpMailSettingsSection : ConfigurationSection

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

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.

This class contains no subclasses.

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.

ConfigurationSection

   SmtpMailSettingsSection

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Community Additions

ADD
Show:
© 2014 Microsoft