MailBee.NET Objects 7.2

DnsCache.SmtpMXMaxFailureCount 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.

public static int SmtpMXMaxFailureCount {get; set;}

Property Value

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.

Remarks

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   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.

Exceptions

Exception TypeCondition
MailBeeInvalidArgumentExceptionvalue is less than 1.

See Also

DnsCache Class | MailBee.DnsMX Namespace