MailBeeMXRecordsDisabledException Class |
Namespace: MailBee.SmtpMail
The MailBeeMXRecordsDisabledException type exposes the following members.
Name | Description | |
---|---|---|
MailBeeMXRecordsDisabledException | Initializes a new instance of the MailBeeMXRecordsDisabledException class |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetObjectData | When overridden in a derived class, sets the SerializationInfo with information about the exception. (Inherited from Exception.) | |
GetType | Gets the runtime type of the current instance. (Inherited from Exception.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Creates and returns a string representation of the current exception. (Inherited from Exception.) |
Name | Description | |
---|---|---|
Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception.) | |
Domain |
Gets the name of the non-existent or dead host.
(Inherited from MailBeeDnsRecordsDisabledException.) | |
ErrorCode |
Gets the error code.
(Inherited from MailBeeException.) | |
HelpLink | Gets or sets a link to the help file associated with this exception. (Inherited from Exception.) | |
HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.) | |
InnerException | Gets the Exception instance that caused the current exception. (Inherited from Exception.) | |
Message | Gets a message that describes the current exception. (Inherited from Exception.) | |
Source | Gets or sets the name of the application or the object that causes the error. (Inherited from Exception.) | |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Inherited from Exception.) | |
TargetSite | Gets the method that throws the current exception. (Inherited from Exception.) |
Name | Description | |
---|---|---|
SerializeObjectState | Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception.) |
This exception can be thrown only if DNS caching is enabled (Enabled is true). In this case, MailBee keeps track of all DNS MX lookup requests made and the following attempts to connect to SMTP MX servers designated by the DNS records retrieved during DNS MX lookup. If, for certain domain, all DNS MX records failed (all SMTP MX servers did not respond), MailBee remembers in its DNS cache that this domain is dead and marks the corresponding DNS records in the cache as disabled. All subsequent attempts to connect to this domain will immediately throw this exception without wasting time on waiting for a response from the dead server. The same optimization is performed when non-existent domain is encountered (i.e. the DNS server returned an error).
However, when Timeout interval (by default, 90 minutes since the moment of adding a record into the cache) elapses, MailBee removes such DNS MX records from the cache. It's assumed the failed server may be back during this time, or DNS records may change, etc, so it's worth trying to check the availability of the host in question again.
Note |
---|
This exception does not refer to the error which occurred just now. It rather occurs to due to past knowledge (acquired during previous send attempts and saved in the cache) that SMTP MX server (which was determined via DNS MX query) could not be contacted or the domain does not exist. |