A NodeJS mailserver component used to validate mail server for incoming and outgoing mails.
- Getting started
- Features
- Usage
- Want to Contribute?
- Need Help / Support?
- Collection of Other Components
- Changelog
- Credits
- License
- Keywords
Install the npm package:
npm install nodejs-weblineindia-mailserver-validation
#OR
yarn add nodejs-weblineindia-mailserver-validation
- This component verifies mail server for incoming and outgoing mails.
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()
This function have 5 following arguments :
- protocol: This has following option :
- 'pop/pop3/pop3s'
- 'imap/imaps'
- host : Hosting server.
- port: Port number.
- username
- password
This function have 6 following arguments :
- fromemail
- toemail
- host : Hosting server.
- port: Port number.
- username
- password
- 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.
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.
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.
Detailed changes for each release are documented in CHANGELOG.md.
nodejs-weblineindia-mailserver-validation is inspired by mailx
nodejs-weblineindia-mailserver-validation, nodejs-mailserver-validation, mailserver-validation, mailserver, nodejs, node-component, nodecomponent, node