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

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
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).
Remarks
In case of UWP edition, this method returns StreamSocket instead.
See Also