DnsCacheSmtpMXMaxFailureCount Property |
Namespace: MailBee.DnsMX
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | value 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 |
---|
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.