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.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public DirectSendServerConfig DirectSendDefaults { get; }
Public ReadOnly Property DirectSendDefaults As DirectSendServerConfig
Get
Property Value
Type:
DirectSendServerConfigThe
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;
mailer.DirectSendDefaults.Timeout = 60000
See Also