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

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
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