SslStartupMode Enumeration
Specifies in which way the mailer component should switch the connection into TLS/SSL mode.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
public enum SslStartupMode
  Member nameValueDescription
Manual0 The developer must manually call StartTls method of the mailer component to switch the connection into TLS/SSL mode. However, AutodetectPortAndSslMode property may cause MailBee to automatically enable TLS/SSL for some well-known hosts or ports even if Manual mode is selected.
OnConnect1 The entire conversation with the mail server will take place under TLS/SSL layer. To use this mode, the developer should connect to the mail server on dedicated TLS/SSL port (usually, 465 for SMTP, 995 for POP3, and 993 for IMAP4).
UseStartTls2 The mailer component will automatically call StartTls method when appropriate (prior to login for POP3/IMAP4, prior to hello for SMTP). No dedicated SSL/TLS port is required (the connection should be made to the regular SMTP, POP3, or IMAP4 port). Also, some SMTP servers use the special port 587 for StartTLS - the client MUST switch the connection into secure mode using StartTLS after establishing the connection to port 587. This is different from connecting to port 25 where the client MAY switch the connection into secure mode (it's up to the client to decide). StartTLS approach provides the same security level as OnConnect. However, the mail server must support STARTTLS (STLS for POP3) extension.
UseStartTlsIfSupported3 Similar to UseStartTls but does not require the server support STARTTLS. If the server supports STARTTLS, MailBee will use it. If STARTTLS is not supported, MailBee will not issue this command and the entire session will not be SSL-encrypted.
SslMode property of SmtpServer, Pop3, or Imap classes can be used to set any of the values provided by this enumeration.
See Also