Skip to content

1337vida/tempmail-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempmail-js

⚡️ Free, open-source and easy to setup tempmail written in Node.JS!

tempmail.js uses MongoDB to store it's data.

Installation

Installing tempmail.js is very easy, all you have to do is:

  1. Clone the repository
git clone https://github.com/1337vida/tempmail-js.git
  1. Install required NPM packages
npm install
  1. Customize your config.json
  2. Run the script!
npm start

(back to top)

Adding a new domain

To add a new domain, make sure you setup CloudFlare on it, and point DNS records like this:

;; A Records
mail.example.com.	1	IN	A	0.0.0.0

;; MX Records
example.com.	1	IN	MX	10 mail.example.com.

DNS Record Example

(back to top)

API Information

All requests need to be authorized via Authorization header which contains the api key from config.json

Method for all the requests is GET

(back to top)

API Routes

Here are all the available routes for tempmail.js:

  • /api/domains
  • /api/:inbox
  • /api/:inbox/list
  • /api/:inbox/latest
  • /api/:inbox/:emailId

(back to top)

Roadmap

  • Add real-time notification system, maybe based on socket.io?
  • Add a webhook notifier on new email
  • Add support for multiple api keys, maybe queried from the database?

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

About

⚡️ Free, open-source and easy to setup tempmail written in Node.JS!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published