mailgun-validate
Simple email validation for node.js using Mailgun's API. Performs
- Syntax checks (RFC defined grammar)
- DNS validation
- Spell checks
- Email Service Provider (ESP) specific local-part grammar (if available).
You will need to sign up at mailgun.net for a public API key.
A PHP version is also available here: github.com/kehers/MG_Email.
Installation
npm install mailgun-validate
Use
var Validator = require('mailgun-validate');
var validator = new Validator('mail-gun-pub-key');
validator.validate('someemail@test.com', function(err, response) {
if (err) {
return;
}
if (response.is_valid) {
}
else {
if (response.did_you_mean) {
}
}
})
Licence
MIT