Skip to content

📬 1secmail disposable temp mail service from terminal

License

Notifications You must be signed in to change notification settings

KevCui/1secmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1secmail CI

Use 1secmail disposable temp mail service from terminal

Table of Contents

Feature

  • Fast access to 1secmail service from terminal
  • Randomly generating email login
  • Easy to remember user name created by Faker
  • Simple integration to any CI process due to Bash script

Dependency

How to use

Usage

Usage:
  ./1secmail [-u <inbox>|-i <id>|-r|-s|-t|-b]

Options:
  no option        Randamly get an inbox
  -u <inbox>       Optional, get an inbox by its mail address
  -i <id>          Optional, show mail by its id
  -r               Optional, show the most recent mail
  -s               Optional, show available domains
  -t               Optional, show plain text without using w3m
  -b               Optional, show data URL with base64 encoded message
  -h | --help      Display this help message

Examples

  • Generate a random inbox with faker-cli:
$ ./1secmail
[]
zoie.brekke@1secmail.net
  • Generate a random inbox without faker-cli:
$ ./1secmail
[]
7iaq6u32s@1secmail.com
$ ./1secmail -u 'test@1secmail.com'
[
  {
    "id": 84113380,
    "from": "0101017488b55e0a-474f-acb5-c5844b227792-000000@email-ses.com",
    "subject": "Please confirm your email address",
    "date": "2020-09-13 18:23:44"
  }
]
  • Show mail 84113380 detail:
$ ./1secmail -u 'test@1secmail.com' -i 84113380
<HTML content in w3m>
...
  • Show the most recent mail in test@1secmail.com:
$ ./1secmail -u 'test@1secmail.com' -r
<HTML content in w3m>
...
  • Show all available domains:
$ ./1secmail -s

Run tests

$ bats test/1secmail.bats

Similar projects

Want more temp mail service? Check out:

Want to send anonymous emails? Check out:

You may like them!


Buy Me A Coffee