Get a TrashMail.net disposable email address from the command line
You want access to a website but it asks you to register. Damn. You don’t want to provide your real email address; you need a disposable (temporary) address.
I love simple solutions. All I want is a command that creates a disposable email address for me and prints this new address on the standard output.
There are lots of services where you can create temporary email addresses. I tried a few but several of them didn’t work or I didn’t like them. TrashMail.net is quite nice but I don’t want to use their web interface each time. I wanted a command line solution.
trashmail.net I found a bash script (trashmail_sdk_1_1.tar.gz) that does the job. However, some time ago I promised I would never touch bash scripts again. So I rewrote it in Python. The project can be found here: https://github.com/jabbalaci/TrashMail.net-disposable-email-address.
# copied to the clipboard firstname.lastname@example.org
[ comments @reddit ]