Returns the underlying Socket MailBee uses for the current SMTP connection.
A reference to the underlying Socket MailBee uses for the current network connection, or a null reference if there is no active connection.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidStateException | There are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false). |
Smtp Class | MailBee.SmtpMail Namespace