| 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
)
Public Function ValidateMX (
address As String
) As AddressValidationResult
public:
AddressValidationResult ValidateMX(
String^ address
)
member ValidateMX :
address : string -> AddressValidationResult
Parameters
- address
- Type: SystemString
Email address to validate (e.g. mail@example.com).
Return Value
Type:
AddressValidationResultResult 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