Click or drag to resize

AddressValidatorValidateMX Method

Validates email address format and the existence of MX record.

Namespace:  Limilabs.Mail.Tools
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public AddressValidationResult ValidateMX(
	string address
)

Parameters

address
Type: SystemString
Email address to validate (e.g. mail@example.com).

Return Value

Type: AddressValidationResult
Result of the validation.
Remarks
If no MX record is found, the address should be treated as if it was associated with an implicit MX RR, with a preference of 0, pointing to that host. That is if no MX record is present mail servers should fall back to the A record for the domain.
See Also