# Email addresses you can program.

Create unlimited inboxes or connect Gmail and Outlook. Send, receive and process email and attachments through APIs, SDKs and webhooks.

MailSlurp's email API creates real email addresses in code, or connects Gmail and Outlook, so your applications, automated tests and AI agents can send, receive and process email and attachments through APIs, SDKs and webhooks.

[Start free](https://app.mailslurp.com/sign-up/?onboardingRequest=messaging)

![Programmable email with hosted inboxes, Gmail and Outlook](https://www.mailslurp.com/_astro/inbox-collection.C94r7fol_Z1df680.png)

Trusted by top companies worldwide

- ![Broadcom](https://www.mailslurp.com/assets/companies/broadcom.svg)
- ![Scraper](https://www.mailslurp.com/assets/companies/scraper.svg)
- ![Trivago](https://www.mailslurp.com/assets/companies/trivago.svg)
- ![Avast](https://www.mailslurp.com/assets/companies/avast.svg)
- ![Wolt](https://assets-cdn.mailslurp.com/image-variants/340/assets/companies/wolt.png?v=00d397d2c52bf7ec681ba48aa9b0b7faeb3f2bab)
- ![Panasonic](https://www.mailslurp.com/assets/companies/panasonic.svg)

## An email address for every test, app and agent.

Create unlimited inboxes without running a mail server. Keep permanent addresses for applications or create disposable inboxes for tests. Choose custom domains and aliases, or connect Gmail and Outlook, then manage your messages through APIs or the dashboard.

[Explore inboxes](https://www.mailslurp.com/docs/inboxes/)

![Emails routed into three separate inbox trays labelled test-1, test-2 and test-3](https://www.mailslurp.com/_astro/inbox-routing-v3.Bxc4Xs3F_146tyA.png)

![Playwright, Cypress and Selenium alongside TypeScript, Python and Java](https://www.mailslurp.com/_astro/test-platforms-sdks.p9BgQBRl_105L1k.png)

### Works with your test platforms

Create inboxes from Playwright, Cypress, Selenium or your own application. Use an official SDK in your language or call the REST API.

[Find your SDK](https://www.mailslurp.com/docs/sdks/)

![An open email containing an example verification code](https://www.mailslurp.com/_astro/otp-email.DXCBNy26_ZJ6iLq.png)

### Wait for the right message

Match the sender, subject or recipient before reading a message. Extract a verification code or link to complete signup, password recovery or another customer journey.

[Explore email waits](https://www.mailslurp.com/docs/wait-for/)

![GitHub, GitLab, Azure DevOps, Docker and Jenkins for automated email tests](https://www.mailslurp.com/_astro/ci-platforms-v2.CSgxdkAF_ZG9cWO.png)

### Built for parallel tests and CI

Give each test or worker its own inbox. Wait for the expected email instead of relying on fixed sleeps or messages left behind by another run.

[Explore email testing](https://www.mailslurp.com/product/email-integration-testing/)

## Send and receive email in your language.

Create an inbox, send a message and wait for a reply without building your own mail server. Use official SDKs or call the REST API directly.

JavaScript, TypeScript, Python, Java, C#, PHP, Ruby and more. Existing mail clients can connect through SMTP and IMAP.

[Browse APIs and SDKs](https://www.mailslurp.com/docs/sdks/)

Send, receive and connect

```javascript
// create mailslurp client
const { MailSlurp } = require('mailslurp-client');
const mailslurp = new MailSlurp({ apiKey: process.env.API_KEY });

// create inboxes
const inbox1 = await mailslurp.createInbox();
const inbox2 = await mailslurp.createInbox();

// send email
await mailslurp.sendEmail(inbox1.id, {
  to: [inbox2.emailAddress],
  subject: "Test",
  body: "<span>Hello 👋</span>",
  isHTML: true
})

// receive email using wait methods
const email = await mailslurp.waitForLatestEmail(inbox2.id, 60000, true)
expect(email.body).toContain("Hello")

// list emails in inbox
const emails = await mailslurp.inboxController.getInboxEmailsPaginated({inboxId: inbox2.id})
expect(emails.numberOfElements).toEqual(1)
```

![MailSlurp SDKs and programming languages](https://www.mailslurp.com/_astro/code-sdks.EuifXJuw_1niiPz.png)

### SDKs for your language

Create inboxes, send email and read messages with JavaScript, TypeScript, Python, Java, C#, PHP and more. Or call the REST API directly.

[Find your SDK](https://www.mailslurp.com/docs/sdks/)

![Playwright, Cypress, Selenium and k6](https://www.mailslurp.com/_astro/testing-logo-cluster-v1.BXSfkQDI_Z2axoUG.png)

### Your existing test frameworks

Verify signup, OTP and password reset flows in Playwright, Cypress and Selenium. Test email under load with k6 and JMeter.

[Explore test integrations](https://www.mailslurp.com/product/email-integration-testing/)

![Claude, ChatGPT, Gemini and Zapier](https://www.mailslurp.com/_astro/agents-logo-cluster-v1.CzTwpu4R_ZDush2.png)

### AI agents and automation tools

Give agents an inbox through MCP and APIs. Receive requests, draft replies and connect email to Zapier workflows with scoped account access.

[Connect your agent](https://www.mailslurp.com/product/email-and-sms-for-agents/)

## Powerful APIs

Find the email you need, extract useful content and turn incoming messages into actions. Read headers, query HTML and stream attachments through the same API.

[Explore the API](https://www.mailslurp.com/docs/api/)

![An email and message documents beside programming braces](https://www.mailslurp.com/_astro/powerful-apis-v1.DclY__5J_ZOQOj.png)

![A magnifying glass selects message content for extraction into structured fields](https://www.mailslurp.com/_astro/matching-extraction-v1.LaiN8Wy__1PGXCb.png)

### Matching and extraction

Wait for messages that match your sender, subject or recipient. Extract codes and links with pattern matching, or use AI to turn message content into structured fields.

[Match and extract content](https://www.mailslurp.com/docs/wait-for/)

![An incoming email branches to an API endpoint, a forwarded message and an automatic reply](https://www.mailslurp.com/_astro/webhooks-automations-v1.DQUPHfLW_Z2nTJIV.png)

### Webhooks & automations

Trigger your endpoint when email arrives. Forward matching messages, route aliases and send automatic replies without repeatedly checking an inbox.

[Automate incoming email](https://www.mailslurp.com/docs/webhooks/)

![PDF, EML and text documents connected for streaming and processing](https://www.mailslurp.com/_astro/files-protocols-v1.DtVbGmX__dzACo.png)

### Files & protocols

Stream attachments and raw messages, inspect headers and MIME parts, and process content at scale. Use HTTP APIs alongside SMTP and IMAP for your existing mail tools.

[Work with files and content](https://www.mailslurp.com/docs/attachments/)

## Trigger your application when email arrives.

Create webhooks to send email events to your endpoint. Start a support workflow, process an incoming order or notify your application without repeatedly checking an inbox. Inspect delivery history and HTTP responses when something needs attention.

[Create an email webhook](https://www.mailslurp.com/docs/webhooks/)

[![MailSlurp webhook event history showing endpoint response codes](https://www.mailslurp.com/_astro/webhook-results.Cxn8fzM-_UGjK0.jpeg)](https://www.mailslurp.com/examples-screenshots/ms2-app/webhooks/webhook-results.jpeg)

Webhook history shows successful deliveries and endpoint errors.

![Illustration of incoming messages routed to applications and data systems](https://www.mailslurp.com/_astro/message-routing.Cw0ysKWv_Zhj2kY.png)

### Forward messages and automate replies

Create forwarders to send matching email to another address. Set up automatic replies to acknowledge incoming requests.

[Configure forwarding](https://www.mailslurp.com/docs/forwarding/)

![Illustration of email and PDF content transformed into JSON fields](https://www.mailslurp.com/_astro/ai-extraction.CYYkA9pV_Z2aSy1z.png)

### Extract invoice and order data

Turn email and PDF attachments into structured JSON. Extract invoice numbers, totals and order details using AI, schemas and OCR.

[Explore AI data extraction](https://www.mailslurp.com/product/ai-email-parsing-structured-content-extraction/)

![Example MailSlurp ruleset configured to block incoming email](https://www.mailslurp.com/_astro/create-ruleset-form.BTmxd2gO_2ruiat.png)

### Control sending and receiving

Create rulesets to allow or block addresses and domains. Apply rules to one inbox or your account, and test them before relying on them.

[Configure inbox rulesets](https://www.mailslurp.com/docs/routing-rulesets/)

## Test the email your application really sends.

Create an inbox for your browser test, trigger signup or password recovery, then wait for the matching message. Read a verification code or follow a magic link to complete the flow.

Use MailSlurp with Playwright, Cypress, Selenium and CI. Bounded waits and message matching help parallel tests read the right email.

[Explore end-to-end testing](https://www.mailslurp.com/product/email-integration-testing/)

Email in your browser tests

```typescript
import { test, expect, Page } from '@playwright/test';
import MailSlurp from "mailslurp-client";

test.describe('test email login with playwright', () => {
  test('can login and verify email address with mailslurp', async ({ page }) => {
    const apiKey = process.env.API_KEY;
    expect(apiKey).toBeDefined();

    // load playground app
    await page.goto("https://playground.mailslurp.com");
    await page.click('[data-test="sign-in-create-account-link"]');

    // create a new inbox
    const mailslurp = new MailSlurp({ apiKey })
    const password = "test-password"
    const { id, emailAddress } = await mailslurp.createInbox()

    // fill sign up form
    await page.fill('input[name=email]', emailAddress);
    await page.fill('input[name=password]', password);
    await page.click('[data-test="sign-up-create-account-button"]');

    // wait for verification code
    const email = await mailslurp.waitForLatestEmail(id)

    // extract the confirmation code (so we can confirm the user)
    const code = /([0-9]{6})$/.exec(email.body)[1];

    // enter confirmation code
    await page.fill('[data-test="confirm-sign-up-confirmation-code-input"]', code);
    await page.click('[data-test="confirm-sign-up-confirm-button"]');

    // fill out username (email) and password
    await page.fill('[data-test="username-input"]', emailAddress);
    await page.fill('[data-test="sign-in-password-input"]', password);
    // submit
    await page.click('[data-test="sign-in-sign-in-button"]');
    await page.waitForSelector("[data-test='greetings-nav']")
  });

});
```

## Manage email together. Control who has access.

Use a shared dashboard to inspect messages and manage accounts. Organize development, staging and production environments, with enterprise roles and permissions for the people using them.

Enterprise options include SAML/OIDC sign-in, SCIM provisioning and audit logs. Choose the team controls your organization needs.

[Explore enterprise features](https://www.mailslurp.com/product/enterprise/)

![Separate development, staging and production environments](https://www.mailslurp.com/_astro/envs.EOQF3L3J_IQRrz.png)

## Go beyond message capture.

Check email quality, warm up your senders, extract structured data and add phone numbers to your applications.

### Device rendering

See the delivered email on supported clients and devices, including mobile and dark mode.

![Email on desktop, phone and tablet in light and dark modes](https://www.mailslurp.com/_astro/light-dark-device-array-v3.BvUE0ns3_2wDyg3.png)

[Explore device rendering](https://www.mailslurp.com/product/device-previews/)

### Email Audit

Find broken links, missing images, accessibility issues and HTML/CSS problems.

![Email illustration highlighting a missing image and broken links](https://www.mailslurp.com/_astro/broken-assets-concept.BJMskOKV_2lMP9M.png)

[Explore Email Audit](https://www.mailslurp.com/product/email-audit/)

### Inbox placement

Check whether your email reaches inbox, promotions or spam in real provider mailboxes.

![Gmail, Yahoo, Outlook, Proton Mail and iCloud mailbox providers](https://www.mailslurp.com/_astro/personal-provider-cluster-five.DkVEEFep_Z2teRKi.png)

[Explore inbox placement](https://www.mailslurp.com/product/inbox-placement-deliverability-tests/)

### Email warmup

Connect a sender and gradually build sending activity with automated warmup schedules and reputation checks.

![An email sender connected through SMTP with Google and Microsoft accounts](https://www.mailslurp.com/_astro/connect-sender-concept-v1.CjLi9li2_ZFxQEX.png)

[Explore email warmup](https://www.mailslurp.com/product/email-warmup/)

### AI data extraction

Turn email, SMS and attachments into structured fields using your own schema. Connect extracted data to your application.

![Email and PDF attachments transformed into structured JSON fields](https://www.mailslurp.com/_astro/ai-extraction.CYYkA9pV_Z2aSy1z.png)

[Explore AI data extraction](https://www.mailslurp.com/product/ai-email-parsing-structured-content-extraction/)

### Phone numbers

Create real phone numbers to send and receive SMS. Test verification codes and automate messages through APIs.

![A phone, SMS message and code symbol for programmable phone numbers](https://www.mailslurp.com/_astro/messaging.BX3QJH2o_ZtxuuL.png)

[Explore phone numbers](https://www.mailslurp.com/product/phone-number-sms-service/)

## Questions about programmable email

Are these real email addresses?

Yes. MailSlurp inboxes receive real email. Create addresses for temporary tests or ongoing applications, use a custom domain, or connect a Gmail or Outlook account.

Does unlimited inboxes mean unlimited usage?

Unlimited inboxes describes address creation, not unlimited message volume or storage. Check the plan and usage allowances for the workloads you want to run. [View plans](https://app.mailslurp.com/pricing/?focus=email)

Do I need to write code?

You can create accounts and inspect messages in the dashboard. APIs, SDKs, SMTP, IMAP and webhooks let developers automate those workflows.

Can I use MailSlurp outside a test suite?

Yes. Receive email and attachments for applications, route messages with webhooks and forwarding, extract structured data, or give AI agents access to email.

## Put your next inbox to work.

Create an email address, receive a message and connect it to your application.

[Start free](https://app.mailslurp.com/sign-up/?onboardingRequest=messaging)
