zb-email-verifier
TypeScript icon, indicating that this package has built-in type declarations

0.7.6 • Public • Published

zb-email-verifier

Install

npm install zb-email-verifier --save

Usage

import { verify } from "zb-email-verifier"

const result = await verify({
	helo: "yourdomain.com",
	from: "youremail@example.org",
	to: "check@example.org",
	catchalltest: true,	// default false
	timeout: 1500		// default 5000
})

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

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

Package Sidebar

Install

npm i zb-email-verifier

Weekly Downloads

201

Version

0.7.6

License

MIT

Unpacked Size

26.6 kB

Total Files

10

Last publish

Collaborators

  • zigbang