{"id":19312035,"url":"https://github.com/weblineindia/nodejs-mailserver-validation","last_synced_at":"2025-10-05T23:16:26.402Z","repository":{"id":129984760,"uuid":"276082552","full_name":"weblineindia/NodeJS-Mailserver-Validation","owner":"weblineindia","description":"A NodeJS mailserver component used to validate mail server for incoming and outgoing mails.","archived":false,"fork":false,"pushed_at":"2023-12-27T08:00:06.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T13:35:41.664Z","etag":null,"topics":["mailserver","mailserver-validation","node-component","node-library","node-mailserver-component","node-module","nodejs","nodejs-component","nodejs-mailserver-component","nodejs-mailserver-validation","nodejs-modules"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/communities.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-06-30T11:41:51.000Z","updated_at":"2023-12-27T07:51:32.000Z","dependencies_parsed_at":"2023-04-15T04:14:44.524Z","dependency_job_id":null,"html_url":"https://github.com/weblineindia/NodeJS-Mailserver-Validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weblineindia/NodeJS-Mailserver-Validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FNodeJS-Mailserver-Validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FNodeJS-Mailserver-Validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FNodeJS-Mailserver-Validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FNodeJS-Mailserver-Validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/NodeJS-Mailserver-Validation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FNodeJS-Mailserver-Validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278532352,"owners_count":26002346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mailserver","mailserver-validation","node-component","node-library","node-mailserver-component","node-module","nodejs","nodejs-component","nodejs-mailserver-component","nodejs-mailserver-validation","nodejs-modules"],"created_at":"2024-11-10T00:32:19.117Z","updated_at":"2025-10-05T23:16:26.360Z","avatar_url":"https://github.com/weblineindia.png","language":"JavaScript","readme":"# NodeJS Mailserver Validation\n\nA NodeJS mailserver component used to validate mail server for incoming and outgoing mails. \n\n## Table of contents\n\n* [Getting started](#getting-started)\n* [Features](#features)\n* [Usage](#usage)\n* [Want to Contribute?](#want-to-contribute)\n* [Need Help / Support?](#need-help)\n* [Collection of Other Components](#collection-of-components)\n* [Changelog](#changelog)\n* [Credits](#credits)\n* [License](#license)\n* [Keywords](#keywords)\n\n## Getting started\n\nInstall the npm package:\n\n``` bash\nnpm install nodejs-weblineindia-mailserver-validation\n#OR\nyarn add nodejs-weblineindia-mailserver-validation\n```\n\n## Features\n\n* This component verifies mail server for incoming and outgoing mails.\n\n## Usage\n\nimport the component `nodejs-weblineindia-mailserver-validation` \n\n``` js\nconst mailserver = require('nodejs-weblineindia-mailserver-validation')\nOR\nimport mailserver from 'nodejs-weblineindia-mailserver-validation'\n```\n\nUse `ValidateIncomingEmail` function to validate incoming mail server and `ValidateOutgoingEmail` function to validate outgoing mail server:\n\n``` js\nasync function checkmail() {\n    let incoming = await mailserver.ValidateIncomingEmail('imaps', 'imap.abc.com', 25, 'mymail@abc.com', 'password') // returns true/false\n    let outcoming = await mailserver.ValidateOutgoingEmail('frommail@abc.com', 'tomail@abc.com', 'smtp.abc.com', 587, 'username', 'password') // returns true/false\n}\n\ncheckmail()\n```\n\n### ValidateIncomingEmail function :\n\n    This function have 5 following arguments :\n\n* protocol: This has following option : \n    - 'pop/pop3/pop3s'\n    - 'imap/imaps'\n* host : Hosting server.\n* port: Port number.\n* username\n* password\n\n### ValidateOutgoingEmail function :\n\n    This function have 6 following arguments :\n\n* fromemail\n* toemail\n* host : Hosting server.\n* port: Port number.\n* username\n* password\n\n## Want to Contribute?\n\n* Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n* [Fork it](http://help.github.com/forking/).\n* Create new branch to contribute your changes.\n* Commit all your changes to your branch.\n* Submit a [pull request](http://help.github.com/pull-requests/).\n\n-----\n\n## Need Help? \n\nWe 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](https://www.weblineindia.com/hire-node-js-developer.html).\n\n-----\n\n## Collection of Components\n\nWe 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](https://www.weblineindia.com/communities.html).\n\n------\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## Credits\n\nnodejs-weblineindia-mailserver-validation is inspired by [mailx](https://www.npmjs.com/package/mailx)\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/miguelmota/is-valid-domain/blob/e48e90f3ecd55431bbdba950eea013c2072d2fac/LICENSE\n\n## Keywords\n\nnodejs-weblineindia-mailserver-validation, nodejs-mailserver-validation, mailserver-validation, mailserver, nodejs, node-component, nodecomponent, node\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fnodejs-mailserver-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fnodejs-mailserver-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fnodejs-mailserver-validation/lists"}