Secure |
public enum SecureSocketOptions
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. |