MailBee.NET Objects 8.0

SslStartupMode Enumeration

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

publicenumSslStartupMode

Remarks

SslMode property of SmtpServer, Pop3, or Imap classes can be used to set any of the values provided by this enumeration.

Members

Member Name Description
Manual The developer must manually call StartTls method of the mailer component to switch the connection into TLS/SSL mode.
OnConnect 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).
UseStartTls 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.
UseStartTlsIfSupported 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.

Requirements

Namespace: MailBee.Security

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee.Security Namespace