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

https://github.com/kevcui/tempmail

:mailbox_with_mail: Use disposable temp-mail service from terminal
https://github.com/kevcui/tempmail

bash bash-script cli disposable-email disposable-emails mail temp-mail tempmail temporary-email temporary-emails

Last synced: 10 months ago
JSON representation

:mailbox_with_mail: Use disposable temp-mail service from terminal

Awesome Lists containing this project

README

          

# tempmail ![CI](https://github.com/KevCui/tempmail/workflows/CI/badge.svg)

> Use [temp-mail](https://temp-mail.org/) disposable email service from your terminal.

## Table of Contents

- [Dependency](#dependency)
- [How to use](#how-to-use)
- [Run tests](#run-tests)
- [Similar projects](#similar-projects)

## Dependency

- [cURL](https://curl.haxx.se/download.html)
- [jq](https://stedolan.github.io/jq/)
- [faker-cli](https://github.com/lestoni/faker-cli)

## How to use

```
Usage:
./tempmail.sh [-u |-c |-d |-s]

Options:
no option optional, randamly get an inbox
-u optional, get an inbox by its mail address
-c optional, delete inbox
-d optional, delete mail by its uid
-s optional, show available domains
-h | --help display this help message

Examples:
- Generate a random inbox:
$ ./tempmail.sh

- Get mails in test@temp-link.net:
$ ./tempmail.sh -u test@temp-link.net

- Delete inbox test@temp-link.net:
$ ./tempmail.sh -c test@temp-link.net

- Delete mail uUa4V5Hjmkqf9O:
$ ./tempmail.sh -d uUa4V5Hjmkqf9O

- Show all available domains:
$ ./tempmail.sh -s
```

## Run tests

```
$ bats test/tempmail.bats
```

## Similar projects

Want more temp mail service? Check out:

- [1secmail](https://github.com/KevCui/1secmail)

- [getnada](https://github.com/KevCui/getnada)

Want to send anonymous emails? Check out:

- [sendmail](https://github.com/KevCui/sendmail)

You may like them!

---

Buy Me A Coffee