Sometimes we need to register some websites with our email to test various features, and then find that the website starts to send spam messages to our email, as shown in the picture:

Many mailbox services have the function of automatic spam classification, but inevitably there are still some difficult to distinguish, to the mail we are not interested in or manually set the rules, sometimes not off.

If we just want to test some features and don’t want this to happen, we can actually register with a small mailbox, or generate a temporary mailbox to register.

Here is a tool to help quickly create a temporary mailbox, simple to use.

tmpmail

The tool is called Tmpmail, and the GitHub address is github.com/sdushantha/… It is a simple command line Shell script that is ready to use once installed. It is available on Windows, Linux, and Mac.

Since I am using a Mac, here is how to install the Mac. First, install dependencies:

brew install w3m curl jq
Copy the code

Then follow GitHub’s instructions to install:

curl -L "https://git.io/tmpmail" > tmpmail && chmod +x tmpmail
Copy the code

We can also move it to the corresponding system path, such as /usr/bin, /usr/local/bin, etc.

mv tmpmail /usr/local/bin/
Copy the code

Once installed, Tmpmail is ready to work.

use

Using tmpMail is actually very simple, first we can use tmpmail to generate a temporary mailbox:

tmpmail
Copy the code

The result is similar to the following:

[ Inbox for [email protected] ]

No new mail
Copy the code

Create a temporary email address ([email protected]), and then “No new mail”.

Have a friend to be able to say, zha does not have password? In fact, we do not need to care about whether the password is correct, we only care about the content of the email it receives. For example, we should take this mailbox to register an account on another website, and then the website will send an activation email to this mailbox, and click to activate it. So for this temporary mailbox, we just need to know the mail received inside the mailbox.

So Tmpmail basically maintains our passwords, and we don’t have to worry about it. It automatically lists the emails in our inboxes.

OK, if we want to change the mailbox, we can also create a new mailbox:

tmpmail --generate
Copy the code

The running results are as follows:

[email protected]
Copy the code

This regenerates a new mailbox.

When you run tmpmail again, it will use the newly generated mailbox. The result is as follows:

[ Inbox for [email protected] ]

No new mail
Copy the code

OK, we are ready.

The registered test

Next, let’s try registering an account on a random website.

For example, Zyte, formerly Scrapinghub, offers data crawling services at www.zyte.com/, as shown here:

Let’s try it:

After filling in the user name, we use the temporary email generated by tmpmail to register the account, enter the password and click Register.

Here Zyte prompts us to send the activation email. We need to check the activation link and activate the account in the corresponding mailbox.

Check your activation

OK, go back to Tmpmail and see if you got it.

Or type:

tmpmail

Copy the code

You should see the following results:

[ Inbox for [email protected] ]

231112827   [email protected]   Zyte Email confirmation
Copy the code

The Email was sent by bounce+ 6EC610.a13e529-J2uabw3jmfn [email protected]. The title of the Email is Zyte Email Confirmation, and there is an ID at the front. Is 231112827.

P.S. : actually, look Zyte sent this email from a temporary mailbox.

How about opening the email like this? Simply add this ID to the tmpmail command:

tmpmail 231112827
Copy the code

The running results are as follows:

Here is the content of the email, which is to thank you for signing up, and then click on the link to activate it. Tmpmail also automatically resolves the clickable content, for example, the hyperlink becomes clickable content. Clicking on the blue Confirm Mail address in the middle triggers access to the link from the command line.

Then the following command line also shows the content of the page after clicking the link:

Basically, thank you for signing up. Your account has been successfully activated.

Finished!

So far we have been able to easily use TmpMail to register a test account using a temporary email address.

Enter your email address and password to log in to Zyte:

There are proxy services, automatic content extraction, cloud crawler, Splash rendering services, if you are interested, you can also try ~

For more exciting content, please pay attention to my public account “Attack Coder” and “Cui Qingcai | Jingmi”.