UNPKG

email-smtp-verificator

Version:

A tool to verify an email address existence via SMTP

27 lines (19 loc) 477 B
const Verification = require('./Verification'); const logger = require('./logger.js'); // logger.enable(); const defaultOptions = { port: 25, sender: 'name@example.org', timeout: 0, fqdn: 'mail.example.org', ignore: false } function emailSMTPVerificator(personalOptions) { const options = Object.assign( {}, defaultOptions, personalOptions ); return (email) => new Verification(email, options).run(); } module.exports = emailSMTPVerificator;