Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SmtpNetworkSettings Class [IIS 7 and higher]
Collapse the table of content
Expand the table of content

SmtpNetworkSettings Class [IIS 7 and higher]

IIS 7.0

Configures Simple Mail Transfer Protocol (SMTP) network settings.

class SmtpNetworkSettings : EmbeddedObject

This class contains no methods.

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

Name

Description

DefaultCredentials

A read/write boolean value. true if default user credentials are used to access an SMTP server; otherwise, false. The default is false.

Host

A read/write string value that specifies the name of the SMTP server.

Password

A read/write string value that specifies the user password with which to connect to an SMTP server.

NoteNote:
The DefaultCredentials property takes precedence over the UserName and Password properties. The UserName and Password properties are used only if DefaultCredentials is set to false.

Port

A read/write sint32 value that specifies the port that SMTP clients use to connect to an SMTP server. The default is 25.

UserName

A read/write string value that specifies the user name with which to connect to an SMTP server.

This class contains no subclasses.

Instances of this class are contained in the Network property of the SmtpMailSettingsSection class.

EmbeddedObject

   SmtpNetworkSettings

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:
© 2015 Microsoft