Skip to content
MailSlurp logo

Fake email generator

A real inbox for a quick email test. Create an address, send it a message, and read what arrives here.

Inbox

Receive-only

Your next test starts here

Create a temporary address and read the email that arrives. No signup, no setup.

20 minutes · Up to 5 messages · No attachments

Give your email flow a quick once-over

Try a welcome message from your application, check a contact-form notification, or make sure a test code reaches an inbox. Copy the address into your test, trigger the email, then come back here. The inbox refreshes itself; no need to keep pressing a button.

This free tool is deliberately short-lived and receive-only. It has no password, SMTP login, reply button, or attachment downloads. Please keep real customer details and anything you need to recover later out of it.

Run the same check in Playwright or Cypress

Copying a code by hand is fine once. In an automated test, create a fresh inbox for each run, sign up with its address, wait for the email, then read the code with one call. It is the same code extraction the free inbox above uses.

Email code test
import { test, expect } from "@playwright/test";
import { MailSlurp } from "mailslurp-client";

const mailslurp = new MailSlurp({ apiKey: process.env.MAILSLURP_API_KEY! });

test("sign up and enter the emailed code", async ({ page }) => {
  const inbox = await mailslurp.createInboxWithOptions({ expiresIn: 300_000 });

  await page.goto("https://your-app.example/sign-up");
  await page.getByLabel("Email").fill(inbox.emailAddress);
  await page.getByRole("button", { name: "Create account" }).click();

  const email = await mailslurp.waitForLatestEmail(inbox.id, 60_000, true);
  const { code } = await mailslurp.emailController.getEmailCodes({ emailId: email.id });
  expect(code).toBeTruthy();
  await page.getByLabel("Verification code").fill(code!);

  // Testing a magic link instead? Read it with getEmailLinks({ emailId: email.id })
  // and open links[0] with page.goto.
});
Get a free API key

A few things worth knowing

Does this address receive real email?
Yes. Once your inbox is ready, send a message to its address from your own application or email account. Messages appear here automatically. This is a real test inbox, not a made-up address or a Gmail account.
Who can read the messages?
This tab holds the private access token for your inbox. Knowing the email address alone does not open the messages. Access also stays on the network used to create it. Use test data rather than confidential information, and delete the inbox when you are finished.
How long does the inbox last?
The inbox expires 20 minutes after creation and accepts up to five messages. Refreshing or closing this tab ends your access sooner. Expired addresses are not reused. You can also delete the inbox and its messages with the Delete inbox control.
What can I send to it?
Send a small text or HTML email without attachments. Each complete message must be 128 KiB or smaller, with up to 32 KiB of decoded text and HTML. The reader shows text only, so tracking images and active HTML stay out of the inbox.
What if my message does not arrive?
Check the full address, give the sender a moment, and make sure the inbox has not expired or reached five messages. Messages with attachments or oversized bodies are rejected. Registration messages from selected social networks and AI services are blocked. Use this tool for tests of your own application, not to bypass another service's rules.

Inbox creation uses reCAPTCHA. Google's Privacy Policy and Terms of Service apply. Free inbox availability is limited to keep the service useful for everyone.