 | SecureSocketOptions Enumeration |
Secure socket options.
Namespace:
MailKit.Security
Assembly:
MailKit (in MailKit.dll) Version: 3.0.0
Syntaxpublic enum SecureSocketOptions
Members
| Member name | Value | Description |
---|
| None | 0 |
No SSL or TLS encryption should be used.
|
| Auto | 1 |
Allow the IMailService to decide which SSL or TLS
options to use (default). If the server does not support SSL or TLS,
then the connection will continue without any encryption.
|
| SslOnConnect | 2 |
The connection should use SSL or TLS encryption immediately.
|
| StartTls | 3 |
Elevates the connection to use TLS encryption immediately after
reading the greeting and capabilities of the server. If the server
does not support the STARTTLS extension, then the connection will
fail and a NotSupportedException will be thrown.
|
| StartTlsWhenAvailable | 4 |
Elevates the connection to use TLS encryption immediately after
reading the greeting and capabilities of the server, but only if
the server supports the STARTTLS extension.
|
Remarks
Provides a way of specifying the SSL and/or TLS encryption that
should be used for a connection.
See Also