SmtpServerLocalEndPoint Property
Gets or sets the local end point which will be used when connecting to the SMTP server.

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

Property Value

Type: EndPoint
A reference to the local end point to be used when connecting to the SMTP server, or a null reference (Nothing in Visual Basic) if the local end point should be assigned automatically. The default value is a null reference.
Remarks

If the computer running MailBee has multiple IP addresses assigned (for instance, it has several network adapters installed), you can set this property to the IP address and port which should be used for outbound connections. See Bind(EndPoint) and LocalEndPoint topics for more information.

If you're sending in "direct send" mode (not using SMTP relay server), the property to be set in this case is Smtp.DirectSendDefaults.LocalEndPoint.

See Also