MailBee.NET Objects 3.1

Smtp.GetSocket Method 

Returns the underlying Socket MailBee uses for the current SMTP connection.

public Socket GetSocket();

Return Value

A reference to the underlying Socket MailBee uses for the current network connection, or a null reference if there is no active connection.

Exceptions

Exception Type Condition
MailBeeInvalidStateException There are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false).

See Also

Smtp Class | MailBee.SmtpMail Namespace