SocketCreatingEventArgsNewSocket Property
Gets or sets the socket object which will be used to establish the connection.

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Socket NewSocket { get; set; }

Property Value

Type: Socket
The Socket object to be used for making the connection, or a null reference (Nothing in Visual Basic) to let MailBee create the socket. The default value is null reference.
Remarks
You can set this property to provide your own (such as specially configured) socket object.
Note Note
You must be prepared to the situation when multiple sockets are requested for the same connection (for instance, the previous attempt failed because IPv6 endpoint was provided or more than one SMTP server was provided and several were tried, etc). You need to provide fresh socket object each time because sockets cannot be reused no matter if the connection attempt failed or not.
In case of UWP edition, this property has StreamSocket type.
See Also