Click or drag to resize
MimeKit

SecureSocketOptions Enumeration

Secure socket options.

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public enum SecureSocketOptions
Members
Member nameValueDescription
None0 No SSL or TLS encryption should be used.
Auto1 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.
SslOnConnect2 The connection should use SSL or TLS encryption immediately.
StartTls3 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.
StartTlsWhenAvailable4 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