Returns a Win32 error code of the last socket-related error.
An integer value containing the last socket-related error code, or 0 if there is no error.
This error code is obtained from NativeErrorCode.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidStateException | There are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false). |
Smtp Class | MailBee.SmtpMail Namespace