deep-email-validator
deep-email-validator copied to clipboard
Valid emails marked as typo
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"
}
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.