Fake email generator tutorial

How you can create test email accounts using MailSlurp’s free fake email address generator.

fake email generator

What are email address generators?

Email address APIs and generators let you create email accounts on demand for use in testing or development or for social campaigns. MailSlurp is a free email generator that can create randomly generated fake email accounts or custom accounts using your own domain.

Why do we need fake email addresses?

Email account services are very useful for developer, QA testers, and marketing teams.

Email proxy forwarding and aliases

Email proxy accounts enable forwarding from alias email address to real hidden accounts. See the email forwarding guide to see examples.

Application testing

Testing email processes is an import task for many developers and QA testers. To test user sign up, lost passwords, transactional emails and more use MailSlurp’s email generator to create test inboxes that can send and receive real emails.

cypress email testing

Marketing spam analysis

It is useful to test emails using fake email generators so that spam and virus detection can be run against emails.

email spam rating

See spam ratings in emails for more.

Custom support and interaction

MailSlurp email webhooks let you generate and then assign fake emails to customers. Users can forward attachments etc to

How to use MailSlurp’s fake email generator

Get started free. Add team-mates, custom domains, and unlimited email accounts with a plan.

Create a free account

Sign up to MailSlurp using the email web app.

sign-up

Create an inbox with an email address

Send and receive emails from the generated address

email compose

Download attachments

MailSlurp stores email attachments for downloading and sending. Use the dashboard or the AttachmentController to send and receive email attachments.

email attachments generator

Webhook email API

You can receive emails to a server using email webhooks.

Each time an inbox receives an email it is sent via HTTP POST to your webhook URL. The payload looks like this:

{
  "inboxId": "bf18161b-b2eb-46cf-8dca-f1dbed4a73bd",
  "emailId": "d56e2062-b507-4cbb-bb91-c6e51ab4bed1",
  "eventName": "EMAIL_RECEIVED",
  "webhookName": "test-webhook",
  "createdAt": "2021-05-02T03:00:35.201Z",
  "to": [
    "a@b.com"
  ],
  "from": "test@gmail.com",
  "cc": [],
  "bcc": [],
  "subject": "Test email received",
  "attachmentMetaDatas": [],
  "messageId": "message-id-123",
  "webhookId": "9f6a02f3-5a24-4b05-86c8-2a10a2668f6b"
}

More options

You can control fake email accounts for testing application or social campaign designs and more. See developer docs for help on getting started.