nodejs-weblineindia-mailserver-validation

1.0.0 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i nodejs-weblineindia-mailserver-validation

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.17 kB

Total Files

5

Last publish

Collaborators

  • partners-wli