Skip to content

malayladu/zigbang-email-verifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zb-email-verifier

Install

npm install zb-email-verifier --save

Usage

const zbEmailVerifier = require('zb-email-verifier');

const helo = 'yourdomain.com';
const from = '[email protected]';
const checkEmail = '[email protected]';

zbEmailVerifier.verify({
  helo: helo,
  from: from,
  to: checkEmail,
  debug: false, // default false
  catchalltest : true, // default false
  timeout: 1500 // default 5000
}).then(result => {
  console.log(result);

  // INVALID - email regexp validation failed
  // EXIST - email is existence
  // NOT_EXIST - email is not existence
  // CATCH_ALL - catch all smtp server

  // MXRECORD_TIMEOUT - resolve mx record timeout
  // MXRECORD_FAIL - resolve mx record fail
  // CONN_FAIL - connect fail smtp
  // CONN_TIMEOUT - connect timeout smtp
  // VERIFY_TIMEOUT
  // VERIFY_FAIL
  // UNKNOWN
});

About

Verify an email address exits via SMTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%