https://github.com/sdushantha/tmpmail Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Topics + AI + DevOps + Security + Software Development Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} sdushantha / tmpmail Public * * Notifications You must be signed in to change notification settings * Fork 148 * Star 3.5k A temporary email right from your terminal written in POSIX sh License MIT license 3.5k stars 148 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 5 * Pull requests 2 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights sdushantha/tmpmail This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master BranchesTags Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 174 Commits .github .github images images .editorconfig .editorconfig .gitignore .gitignore Dockerfile Dockerfile LICENSE LICENSE README.md README.md tmpmail tmpmail tmpmail.1 tmpmail.1 View all files Repository files navigation * README * MIT license [logo] A temporary email right from your terminal written in POSIX sh [demo] tmpmail is a command line utility written in POSIX sh that allows you to create a temporary email address and receive emails to the temporary email address. It uses 1secmail's API to receive emails. By default w3m is used to render the HTML emails on the terminal. But if you prefer another text based web browser or would rather view the email in a GUI web browser such as Firefox, simply use the --browser argument followed by the command needed to launch the web browser of your choice. Dependencies * w3m * curl * jq * xclip Installation Install locally # Download the tmpmail file and make it executable $ curl -L "https://raw.githubusercontent.com/sdushantha/tmpmail/master/tmpmail" > tmpmail && chmod +x tmpmail # Then move it somewhere in your $PATH. Here is an example: $ mv tmpmail ~/bin/ AUR tmpmail is available on the AUR, which is currently being maintained by Benjamin Badorf $ yay -S tmpmail-git Pacstall (Debian/Ubuntu) tmpmail is available on the pacstall-programs repository, which is being currently being maintained by wizard-28 $ pacstall -I tmpmail-bin Nixpkgs tmpmail is also available in the nix package collection (only unstable currently), which is maintained by legendofmiracles Either add it to your system packages, install it with nix-env or try it out in a ephemeral nix-shell nix-shell -p tmpmail Docker requirements: * docker * clone this repo $ docker build -t mail .; # Dockerfile available in source code $ docker run -it mail; Usage $ tmpmail --help tmpmail tmpmail -h | --version tmpmail -g [ADDRESS] tmpmail [-t | -b BROWSER] -r | ID When called with no option and no argument, tmpmail lists the messages in the inbox and their numeric IDs. When called with one argument, tmpmail shows the email message with specified ID. -b, --browser BROWSER Specify BROWSER that is used to render the HTML of the email (default: w3m) --clipboard-cmd COMMAND Specify the COMMAND to use for copying the email address to your clipboard (default: xclip -selection c) -c, --copy Copy the email address to your clipboard -d, --domains Show list of available domains -g, --generate [ADDRESS] Generate a new email address, either the specified ADDRESS, or randomly create one -h, --help Show help -r, --recent View the most recent email message -t, --text View the email as raw text, where all the HTML tags are removed. Without this option, HTML is used. --version Show version Examples Create random email $ tmpmail --generate xoithrjagpx@1secmail.net Create custom email $ tmpmail --generate mycustomemail@1secmail.com mycustomemail@1secmail.com View the inbox $ tmpmail [ Inbox for wdebivbyjor@1secmail.com ] 83414443 username@example.com Test Email View the email $ tmpmail 83414443 View the most recent email $ tmpmail -r View emails as pure text $ tmpmail -t 83414443 To: wdebivbyjor@1secmail.com From: username@example.com Subject: Test Email Hello World [Attachments] https://is.gd/aBCdEf [apple.jpg] https://is.gd/AbCDeF [ball.jpg] Credits This script is heavily inspired by Mitch Weaver's 1secmail script About A temporary email right from your terminal written in POSIX sh Topics macos linux bash commandline aur disposable-email posix posix-sh receive-emails temporary-email tmpmail 1secmail Resources Readme License MIT license Activity Stars 3.5k stars Watchers 49 watching Forks 148 forks Report repository Releases 6 v1.2.3 Latest May 5, 2022 + 5 releases Sponsor this project * https://www.buymeacoffee.com/sdushantha Packages 0 No packages published Contributors 19 * @sdushantha * @KevCui * @mehtaarn000 * @aincube * @rpdelaney * @jschauma * @leonklingele * @diggajupadhyay * @victorlpgazolli * @vladimyr * @avil13 * @rjhbrunt * @anthonybaldwin * @legendofmiracles + 5 contributors Languages * Shell 91.6% * Roff 7.2% * Dockerfile 1.2% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.