SmtpDirectSendDefaults Property
Provides access to the default SMTP server settings to be used when connecting to SMTP servers discovered by MailBee via DNS MX lookup.

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

Property Value

Type: DirectSendServerConfig
The DirectSendServerConfig object containing the default SMTP server settings to be used when connecting to SMTP servers discovered via DNS MX lookup (in direct send mode).
Remarks
This property allows the developer to specify SMTP settings for SMTP servers which are discovered by MailBee via DNS MX lookup in direct send mode (they are also called SMTP MX servers, as opposed to SMTP relay servers which reside in SmtpServers collection).
Examples
The statement below demonstrates now to increase SMTP connection timeout value. This is useful if some SMTP MX servers discovered during DNS MX lookup are so slow that they do not always respond during the default timeout interval (20 seconds). In this code, the timeout value is set to 60 seconds. It's assumed mailer is an instance of Smtp class.
mailer.DirectSendDefaults.Timeout = 60000;
See Also