SmtpGetSocketError Method
Returns a Win32 error code of the last socket-related error.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
Syntax
public int GetSocketError()

Return Value

Type: Int32
An integer value containing the last socket-related error code, or 0 if there is no error.
Exceptions
ExceptionCondition
MailBeeInvalidStateExceptionThere are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false).
Remarks
This error code is obtained from NativeErrorCode.
See Also