https://github.com/amulyakashyap09/fakemailfilter
Script in nodejs to detect whether email exists or not.
https://github.com/amulyakashyap09/fakemailfilter
dns-lookup email-validation email-verification filter javascript netcat nodejs spam spamfilter telnet
Last synced: 28 days ago
JSON representation
Script in nodejs to detect whether email exists or not.
- Host: GitHub
- URL: https://github.com/amulyakashyap09/fakemailfilter
- Owner: amulyakashyap09
- License: mit
- Created: 2018-10-05T09:17:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-05T09:44:01.000Z (over 7 years ago)
- Last Synced: 2025-03-03T21:45:17.117Z (over 1 year ago)
- Topics: dns-lookup, email-validation, email-verification, filter, javascript, netcat, nodejs, spam, spamfilter, telnet
- Language: HTML
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fake Mail Filter  [](https://coveralls.io/github/amulyakashyap09/fakemailfilter?branch=master)
FakeEmailFilter is a Nodejs library checks that particular email exists or not before sending the email.
## Installation
### Requirements
* Linux/Windows/Mac
* Node > 7.4.x
`$ npm install fakemailfilter --save`
## Usage
```javascript
"use strict";
const fmf = require("./fakeEmailFilter")
const start = async ()=>{
let fromEmail = "amulyakashyap09@gmail.com";
let toEmail = "amulya.ratan@bookmyshow.com";
let result = await fmf.checkIfEmailIsValid(fromEmail, toEmail)
console.log("Result : ", result)
}
start();
```
## Sample Output
```json
$ This email does not exists
{
"email": "amulyadoesnotexistsinemail@gmail.com",
"status": false,
"error": "this email does not exists"
}
$ This email does not exists
{
"email": "amulyakashyap09@gmail.com",
"status": true,
"error": null
}
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)