 | AddressValidatorValidateMX Method |
Validates email address format and the existence of MX record.
Namespace: Limilabs.Mail.ToolsAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic AddressValidationResult ValidateMX(
string address
)
Public Function ValidateMX (
address As String
) As AddressValidationResult
public:
AddressValidationResult ValidateMX(
String^ address
)
member ValidateMX :
address : string -> AddressValidationResult Parameters
- address String
- Email address to validate (e.g. mail@example.com).
Return Value
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