Checks existence of email addresses
To install via npm:
npm install email-existence
A valid email address to check the existence of. Use node-validator to check validity.
-
Check existence:
emailExistence.check('[email protected]', function(err,res){ console.log('res: '+res); });
-
The check function will return a boolean to indicate existence of an email address. Existence is determined by telnetting to the MX server of the email domain and attempting to send an email to the supplied address. MX servers return 250 if the email address exists and 550 if it does not. This test email is not ever sent.