deep-email-validator icon indicating copy to clipboard operation
deep-email-validator copied to clipboard

Valid emails marked as typo

Open abdullah99R opened this issue 2 years ago • 1 comments
trafficstars

Valid emails marked as invalid some time e.g on [email protected] I am getting

"result": {
            "valid": false,
            "validators": {
                "regex": {
                    "valid": true
                },
                "typo": {
                    "valid": false,
                    "reason": "Likely typo, suggested email: [email protected]"
                },
                "disposable": {
                    "valid": false
                },
                "mx": {
                    "valid": false
                },
                "smtp": {
                    "valid": false
                }
            },
            "reason": "typo"
        }

abdullah99R avatar Mar 28 '23 07:03 abdullah99R

you can suppress this issue by adding the top level domain co to the additionalTopLevelDomains like below.

await validate({
  email: '[email protected]',
  sender: '[email protected]',
  validateRegex: true,
  validateMx: true,
  validateTypo: true,
  validateDisposable: true,
  validateSMTP: true,
  additionalTopLevelDomains: [ 'co' ]
})

it was hinted in the README.

AhmedY0unes avatar Mar 30 '23 17:03 AhmedY0unes