is-email-valid-full
v1.2.6
Published
Fully validate an email address's syntactic correctness and existence as a real email address that will not bounce. Basic RFC validation also available.
Downloads
4
Maintainers
Readme
is-email-valid-NPM
NodeJS NPM library for determining if an email address is fully valid. This is much deeper than simply checking if the text string looks like an email address. is-email-valid-full will do all of the following:
- Check if the email address is valid syntactically
- Contact the mail server and verify the existence of the account, without actually sending any email
This ensures that the email addresses that you capture are real and will not bounce.
Get Started
- Install is-email-valid-full NPM package:
npm install is-email-valid-full
Get a free tier no-expiration API Key from Cloudmersive, which includes 50,000 calls per month.
Call the API. Here is an example on how to get started:
'use strict';
var isEmail = require('is-email-valid-full');
var http = require('http');
var port = process.env.PORT || 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
isEmail.setApikey('PUT_YOUR_API_KEY_HERE');
var result = isEmail.isEmailValid('[email protected]', function (output) {
res.end(output.ValidAddress.toString());
});
}).listen(port);