Skip to content

A NodeJS library for checking if an email address exists without sending any email.

License

Notifications You must be signed in to change notification settings

arndesk/emailexists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


@arndesk/emailexists

A NodeJS library for checking if an email address exists without sending any email.

Get StartedInstallationUsageFeaturesContributingLicense

Get Started

Installation

Use npm to install this package:

npm install @arndesk/emailexists

Usage

Here's a basic example of how to use qed-mail in your code:


const { validateEmail } = require('@arndesk/emailexists');

// Async function to use the validateEmail function
async function main() {
  const sender = null; //Not Important to set anything
  const recipient = '[email protected]';
  const checkValid = true; // If false, then only check Format and MX Records

  try {
    const result = await validateEmail(sender, recipient, checkValid);
    console.log(result);
  } catch (error) {
    console.error(error);
  }
}

main();


Features

  • Validates the format of an email address
  • Checks the MX records of the email domain
  • Performs further validity checks depending on the user's requirements
  • Can be used both as a standalone library or as a part of a larger project

About

A NodeJS library for checking if an email address exists without sending any email.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published