@jonathankablan/email-server-true

> Check if the mail server is correct or exists


Keywords
email-server-true, true email, domain, email validator, check email domain, domain email, email
License
MIT
Install
npm install @jonathankablan/email-server-true@1.0.7

Documentation

email-server-true

Check if the domain mail is correct or exists

Install

$ npm install @jonathankablan/email-server-true

Usage

const email = require('@jonathankablan/email-server-true')

// You can use a string
email('johndoe') // return 'undefined' if email is invalid 

email('johndoe@helloworld.fr') // return 'false' if email not match

email('johndoe@gmail.com') // return 'true' if email match

// list of domains verify
"gmail.com",
"yahoo.fr",
"hotmail.fr",
"hotmail.com",
"outlook.fr",
"live.fr",
"live.com",
"outlook.com",
"orange.fr",
"sfr.fr",
"icloud.com",
"me.com",
"mac.com",
"labanquepostale.fr",
"laposte.net",
"wanadoo.fr"

// you can also add your domain list
var newDomain = [
    'discord.com',
    'enterprise.net'
];

email('johndoe@discord.com', newDomain) // return true

Resources

License

MIT © Jonathan Kablan