Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid emails marked as typo #68

Open
abdullah99R opened this issue Mar 28, 2023 · 1 comment
Open

Valid emails marked as typo #68

abdullah99R opened this issue Mar 28, 2023 · 1 comment

Comments

@abdullah99R
Copy link

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 abdullah99R changed the title Valid emails marked as type Valid emails marked as typo Mar 28, 2023
@AhmedY0unes
Copy link

AhmedY0unes commented Mar 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants