validate-email-dns
v0.1.6
Published
Validates email using DNS query and RegExp
Downloads
10
Readme
Installation
npm install validate-email-dns
Usage
var co = require('co');
var validate = require('validate-email-dns');
co.wrap(validate)('[email protected]').then(function(correct) {
if (correct) {
console.log('This email address is correct');
} else {
console.log('This email address is incorrect');
}
});
Features
- Flow based on generators
- Checks if domain name is registered and has valid
MX
orA
record - Domain specific rules for popular email providers