Specifies the protocol to be used for performing TLS/SSL negotiation and data encryption.
The security protocol can be set via SslProtocol property of SmtpServer, Pop3, or Imap classes.
Most applications use Auto option, which allows MailBee.NET to communicate with the server using the most secure of the available methods.
Note If the mail server does not support automatic protocol negotiation (this usually results in getting MailBeeSocketResetException thrown during TLS/SSL negotiation), the developer should mannually specify the protocol to be used (for example Tls1).
| Member Name | Description |
|---|---|
| Auto | The most secure protocol supported by the server will be used to authenticate the client and encrypt the data. If the server supports TLS, this protocol will be used; otherwise, less secure protocols such as SSL2 or SSL3 will be tried. However, some servers require the client to specify the protocol and do not support automatic protocol negotiation. |
| Ssl2 | SSLv2 will be used to authenticate the client and encrypt the data. |
| Ssl3 | SSLv3 will be used to authenticate the client and encrypt the data. |
| Tls1 | TLS will be used to authenticate the client and encrypt the data. |
Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll)