SmtpAccess Enumeration
.NET Framework (current version)
Specifies the level of access allowed to a Simple Mail Transport Protocol (SMTP) server.
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
| 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. |
The SmtpAccess enumeration is used by the SmtpPermission and SmtpPermissionAttribute classes to specify a level of access to an SMTP host computer. The SmtpClient class demands an SmtpPermission when sending electronic mail to the SMTP host for delivery.
.NET Framework
Available since 2.0
Available since 2.0
Show: