System.Net.Mail.SmtpAccess Enumeration

Specifies the level of access allowed to a Simple Mail Transport Protocol (SMTP) server.

Syntax

public enum SmtpAccess

Remarks

The System.Net.Mail.SmtpAccess enumeration is used by the System.Net.Mail.SmtpPermission and System.Net.Mail.SmtpPermissionAttribute classes to specify a level of access to an SMTP host computer. The System.Net.Mail.SmtpClient class demands an System.Net.Mail.SmtpPermission when sending electronic mail to the SMTP host for delivery.

Members

Member NameDescription
Connect

Connection to an SMTP host on the default port (port 25).

ConnectToUnrestrictedPort

Connection to an SMTP host on any port.

None

No access to an SMTP host.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0