SmtpNetworkSettings Class

Configures Simple Mail Transfer Protocol (SMTP) network settings.

Syntax

class SmtpNetworkSettings : EmbeddedObject  

Methods

This class contains no methods.

Properties

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. Note: 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.

Subclasses

This class contains no subclasses.

Remarks

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

Inheritance Hierarchy

EmbeddedObject

SmtpNetworkSettings

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

EmbeddedObject Class
SmtpMailSettingsSection Class