This change adds a parameter named checkMx to the emailValidator function to disable the MX records check if needed. This handy feature can be used during testing or if users don't want the MX validation. The param defaults to true, so the change is backward compatible. This feature was requested by @zertex and will close issue #5.
This change adds a parameter named
checkMx
to theemailValidator
function to disable the MX records check if needed. This handy feature can be used during testing or if users don't want the MX validation. The param defaults totrue
, so the change is backward compatible. This feature was requested by @zertex and will close issue #5.