mailgun-validator
Install
npm install mailgun-validator
API
var mgval = '<PUBLIC_APIKEY>'
Validator.validate(address:String, cb:Function)
Validates the given `address
Examples:
mgval
Returns:
is_valid: true parts: local_part: 'john.smith' domain: 'gmail.com' display_name: '' address: 'john.smith@gmail.com' did_you_mean: null
Validator.parse(addresses:String|Array, syntaxOnly:Boolean, cb:Function)
Parses the given addresses
Example:
mgval
Returns:
parsed: 'john@gmail.com' 'hello@world.com' unparseable:
Example:
mgval
Returns:
parsed: 'hello@world.com' unparseable: 'john@gmail.com'