An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Fake Mail Filter ![CI status](https://img.shields.io/badge/build-passing-brightgreen.svg) [![Coverage Status](https://coveralls.io/repos/github/amulyakashyap09/fakemailfilter/badge.svg?branch=master)](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/)