Specifies in which way the mailer component should switch the connection into TLS/SSL mode.
SslMode property of SmtpServer, Pop3, or Imap classes can be used to set any of the values provided by this enumeration.
| 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 or 587 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 regular SMTP, POP3, or IMAP4 port). This approach provides the same security level as OnConnect. However, the mail server must support STARTTLS (STLS for POP3) extension. |
Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll)