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

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

Return Value

Type: Socket
A reference to the underlying Socket MailBee uses for the current network connection, or a null reference if there is no active connection.
Exceptions
ExceptionCondition
MailBeeInvalidStateExceptionThere are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false).
See Also