GlobalLocalSmtpMXServerName Property
Gets or sets the default SMTP MX server name to be used to send mail in direct send mode to the recipients whose e-mail address contains no domain part.

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

Property Value

Type: String
The name of SMTP server to relay mail in direct send mode when it's impossible to determine recipient's own SMTP MX server because domain is missing in e-mail address, or a null reference (Nothing in Visual Basic) to use local machine name as SMTP server name.
Remarks

When this property is a null reference (default value), the local machine name will be used as the name of SMTP MX server for sending mail to e-mail addresses like jdoe (as opposed to jdoe@domain) in direct send mode.

When sending to a relay SMTP server, all the recipients are submitted to the relay server, and LocalSmtpMXServerName value is not used.

Note Note
If LocalSmtpMXServerName is set to an empty string (Empty) rather than to a null reference, MailBee will attempt to perform MX lookup query for an empty domain name on direct send attempt, which would result in an error.
See Also