Skip to content

A NodeJS mailserver component used to validate mail server for incoming and outgoing mails.

License

Notifications You must be signed in to change notification settings

weblineindia/NodeJS-Mailserver-Validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Mailserver Validation

A NodeJS mailserver component used to validate mail server for incoming and outgoing mails.

Table of contents

Getting started

Install the npm package:

npm install nodejs-weblineindia-mailserver-validation
#OR
yarn add nodejs-weblineindia-mailserver-validation

Features

  • This component verifies mail server for incoming and outgoing mails.

Usage

import the component nodejs-weblineindia-mailserver-validation

const mailserver = require('nodejs-weblineindia-mailserver-validation')
OR
import mailserver from 'nodejs-weblineindia-mailserver-validation'

Use ValidateIncomingEmail function to validate incoming mail server and ValidateOutgoingEmail function to validate outgoing mail server:

async function checkmail() {
    let incoming = await mailserver.ValidateIncomingEmail('imaps', 'imap.abc.com', 25, 'mymail@abc.com', 'password') // returns true/false
    let outcoming = await mailserver.ValidateOutgoingEmail('frommail@abc.com', 'tomail@abc.com', 'smtp.abc.com', 587, 'username', 'password') // returns true/false
}

checkmail()

ValidateIncomingEmail function :

This function have 5 following arguments :
  • protocol: This has following option :
    • 'pop/pop3/pop3s'
    • 'imap/imaps'
  • host : Hosting server.
  • port: Port number.
  • username
  • password

ValidateOutgoingEmail function :

This function have 6 following arguments :
  • fromemail
  • toemail
  • host : Hosting server.
  • port: Port number.
  • username
  • password

Want to Contribute?

  • Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
  • Fork it.
  • Create new branch to contribute your changes.
  • Commit all your changes to your branch.
  • Submit a pull request.

Need Help?

We also provide a free, basic support for all users who want to use this NodeJs Mailserver Validation component in their software project. In case you want to customize this Mailserver Validation component to suit your development needs, then feel free to contact our NodeJS developers.


Collection of Components

We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development.


Changelog

Detailed changes for each release are documented in CHANGELOG.md.

Credits

nodejs-weblineindia-mailserver-validation is inspired by mailx

License

MIT

Keywords

nodejs-weblineindia-mailserver-validation, nodejs-mailserver-validation, mailserver-validation, mailserver, nodejs, node-component, nodecomponent, node