dilli-email-validation
Verify email address instantly using Dilli Email Validation API (DEVA).
Get FREE API key by signing up with Dilli Email Validation API.
Following checks are performed:
- Format Validation
- MX records exist and MX is resolvable
- Profanity in user or domain part.
- Email Service Provider (ESP) specific local-part grammar rules
- Disposable (a.k.a Temporary) email addresses
- Known spammer
- Role-based email addresses (ex: help@, support@, info@)
- Safe domains
Installation
npm install --save dilli-email-validation
Use
var Validator = require('dilli-email-validation');
var validator = new Validator('API_KEY');
validator.validate('emailtotest@domaintotest.com', function(err, response) {
if (err) {
return;
}
if (response === true) {
console.log('email is valid')
} else {
console.log('email is invalid);
}
})
Licence
MIT