https://github.com/jon-becker/node-temp-mail
Node wrapper for creating and fetching temporary, disposable emails, as well as their new messages.
https://github.com/jon-becker/node-temp-mail
email mail nodejs smtp tempmail
Last synced: 3 months ago
JSON representation
Node wrapper for creating and fetching temporary, disposable emails, as well as their new messages.
- Host: GitHub
- URL: https://github.com/jon-becker/node-temp-mail
- Owner: Jon-Becker
- License: mit
- Created: 2020-07-13T02:07:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T20:21:45.000Z (3 months ago)
- Last Synced: 2025-03-19T21:36:26.584Z (3 months ago)
- Topics: email, mail, nodejs, smtp, tempmail
- Language: JavaScript
- Homepage:
- Size: 2.71 MB
- Stars: 19
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-temp-mail
Node wrapper for creating and fetching temporary, disposable emails, as well as their new messages.
## Installation
```shell
npm install node-temp-mail
```## Usage
```javascript
const TempMail = require("node-temp-mail");// Let's create an address object so it can be accessed by the module.
const address = new TempMail("testAddress");// We already have the address object, so now let's access it and get a list of the emails in a nice & neat json object.
address.fetchEmails((err, body) => {
console.log(body);
});// Or we can use the async/await syntax
const body = await address.fetchEmails();// If for any reason you need to see the full temporary email address, you can use the following function.
address.getAddress();
```