DnsCacheSmtpMXMaxFailureCount Property
Gets or sets the maximum number of seriated failures of the SMTP MX server required in order to consider the SMTP MX server down.

Namespace: MailBee.DnsMX
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public static int SmtpMXMaxFailureCount { get; set; }

Property Value

Type: Int32
The number of seriated failures of the SMTP MX server which needs to be achieved in order to consider this server down. The default value is 1.
MailBeeInvalidArgumentExceptionvalue is less than 1.

When making connections to SMTP MX servers, it may happen that the connection with the server cannot be temporarily established. However, the server may revert back to function shortly (on the next connection attempt or after certain time interval elapses).

Note Note
This property does not set the number of attempts to connect to the server prior to returning an error. It only sets whether MailBee should cache the information about bad status of the given SMTP MX server for subsequent sending of other e-mail messages if any. In other words, this property makes sense only if the application sends multiple messages, not just one. Also, this property will not have any effect if DNS MX caching is disabled (Enabled is false).

If the given SMTP MX server reached SmtpMXMaxFailureCount number of seriated failures, MailBee won't try to connect to it until SmtpMXNextAttemptInterval elapses.

See Also