Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enhanced-email-deep-validator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enhanced-email-deep-validator

Verify email address checking MX records, and SMTP connection. Return the MX records.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
233
decreased by-9.34%
Maintainers
1
Weekly downloads
 
Created
Source

enhanced-email-deep-validator

A very small modification from the original email-deep-validator that verifies an email address checking MX records and SMTP connection, returning the MX records whenever it exits.

Installation

Install the module through NPM:

$ npm install enhanced-email-deep-validator --save

Requires Node 6 or above

Examples

Include the module, create a new EmailValidator object and call verify method:

const EmailValidator = require('enhanced-email-deep-validator');

const emailValidator = new EmailValidator();
emailValidator.verify('foo@email.com')
  .then(mxRecords => console.log('Email is valid.', mxRecords);

emailValidator.verify('non-existent@email.com')
  .catch(err => console.log('Email is not valid', err.message, err.mxRecords));

Configuration options

timeout

Set a timeout in seconds for the smtp connection. Default: 10000.

verifyMxRecords

Enable or disable the check of mx records. Default: true.

verifySmtpConnection

Enable or disable the SMTP check. Default true.

Testing

$ npm test

Contributing

This module was originally written to be used with Conversio and is used in a production environment currently. This will ensure that this module is well maintained, bug free and as up to date as possible.

Conversio's developers will continue to make updates as often as required to have a consistently bug free platform, but we are happy to review any feature requests or issues and are accepting constructive pull requests.

FAQs

Package last updated on 28 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc