Enum SecureSocketOptions
Matches MailKit.Security.SecureSocketOptions and defined locally to avoid having to take a dependency on this external library into Umbraco.Core.
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
public enum SecureSocketOptions
Fields
Name | Description |
---|---|
Auto | 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. |
None | No SSL or TLS encryption should be used. |
SslOnConnect | The connection should use SSL or TLS encryption immediately. |
StartTls | 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 | 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. |