Checks if an email is valid & real by contacting the associated remote mail server 📧
See email-chk-cli for the command-line tool.
$ npm install --save email-chk
const emailChk = require('email-chk')
try {
const exists = await emailChk('test@example.com')
}
catch (e) {
// connection refused or server error occurred
}
// or
emailChk('test@example.com')
.then(console.log)
.catch(console.error)
Returns a boolean
representing if the email is valid & real
Type: string
The email to verify and check existence for
Type: number
Default: 5000
The idle timeout in ms for the socket performing requests
Type: string
Default: domain of email
The domain of the originating SMTP server for the request
Type: string
Default: email
The originating email for the request
- email-chk-cli - CLI for this module
- email-chk-lambda - Lambda function for this module
MIT © Brandon Smith