# Turn incoming email and SMS into action.

Route inbound email with inbox rules, forwarding, webhooks, auto-replies, and AI-powered extraction workflows.

Receive messages and attachments, trigger webhooks and put the content to work in your application. Route email, send automatic replies and extract the fields your workflow needs.

[Create free account](https://app.mailslurp.com/sign-up/?onboardingRequest=data)

![Email and SMS routed into application code, databases and spreadsheets](https://www.mailslurp.com/_astro/message-routing.Cw0ysKWv_Zhj2kY.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=a3a8767f88cc5f45fbfb0ac77bc98e231ac4d061)
- ![Panasonic](https://www.mailslurp.com/assets/companies/panasonic.svg)

## Follow the message through to your endpoint.

A customer sends an email or SMS. MailSlurp receives it and notifies your webhook; your application fetches the message and attachments, updates its records and responds. Inspect webhook events and HTTP responses in the dashboard when a handoff needs attention.

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

[![MailSlurp webhook events with successful and unsuccessful endpoint responses](https://www.mailslurp.com/_astro/webhook-results.B4Qkt9DT_ZbskcM.jpeg)](https://www.mailslurp.com/examples-screenshots/ms2-app/webhooks/webhook-results.jpeg)

Webhook event history in MailSlurp. Inspect delivery responses alongside the source message.

Deterministic email accounts

## Create inboxes, then attach the routing rules

Create real inboxes on demand or connect Gmail, Outlook, and custom domains. Then configure forwarding, replies, rulesets, webhooks, and extraction so each message reaches the right destination.

MailSlurp (examples)

```typescript
const MailSlurp = require('mailslurp-client').default;
const mailslurp = new MailSlurp({
  apiKey: process.env.API_KEY ?? 'your-api-key',
});

// create an inbox with options using the inbox controller
const inbox = await mailslurp.inboxController.createInbox({
  // name is used a contact name when sending
  name: 'John Doe',
  // use the expanded domain pool so randomly assigned email address is more varied
  useDomainPool: true,
  // permanent by default or supply an expires at time
  expiresAt: undefined,
});
```

Smart automations and routing

## Turn received messages into structured actions

Match inbound email, route attachments, trigger webhooks, and convert message content into JSON using schemas, AI prompts, labels, and OCR.

MailSlurp (examples)

```typescript
async function handleNewAttachmentPayload(payload: WebhookNewAttachmentPayload) {
  type PackageStatus = {
    packageId: string;
    delivered: boolean;
  }
  const { result } = await aiController.generateStructuredContentFromAttachment({
    generateStructuredContentAttachmentOptions: {
      attachmentId: payload.attachmentId,
      instructions: 'Parse attachment and extract package status',
      outputSchema: {
        type: StructuredOutputSchemaTypeEnum.object,
        properties: {
          packageId: {
            type: StructuredOutputSchemaTypeEnum.string,
            description: 'The ID of the package'
          },
          delivered: {
            type: StructuredOutputSchemaTypeEnum.boolean,
            description: 'Has the package been delivered?'
          }
        }
      }
    }
  });
  await persistStructuredData(result as PackageStatus);
}
```

Integrate MailSlurp Seamlessly

[![Javascript](https://www.mailslurp.com/icons/javascript.svg)](https://www.mailslurp.com/developers/) [![Python](https://www.mailslurp.com/icons/python.svg)](https://www.mailslurp.com/developers/) [![CSharp](https://www.mailslurp.com/icons/csharp.svg)](https://www.mailslurp.com/developers/) [![Java](https://www.mailslurp.com/icons/java.svg)](https://www.mailslurp.com/developers/) [![Postman](https://www.mailslurp.com/icons/postman.svg)](https://www.mailslurp.com/developers/) [![PHP](https://www.mailslurp.com/icons/php.svg)](https://www.mailslurp.com/developers/) [![Ruby](https://www.mailslurp.com/icons/ruby.svg)](https://www.mailslurp.com/developers/) [![Playwright](https://www.mailslurp.com/icons/playwright.svg)](https://www.mailslurp.com/developers/) [![Selenium](https://assets-cdn.mailslurp.com/image-variants/340/assets/brands/icons/selenium.png?v=a3a8767f88cc5f45fbfb0ac77bc98e231ac4d061)](https://www.mailslurp.com/developers/)

[![Javascript](https://www.mailslurp.com/icons/javascript.svg)](https://www.mailslurp.com/developers/) [![Python](https://www.mailslurp.com/icons/python.svg)](https://www.mailslurp.com/developers/) [![CSharp](https://www.mailslurp.com/icons/csharp.svg)](https://www.mailslurp.com/developers/) [![Java](https://www.mailslurp.com/icons/java.svg)](https://www.mailslurp.com/developers/) [![Postman](https://www.mailslurp.com/icons/postman.svg)](https://www.mailslurp.com/developers/) [![PHP](https://www.mailslurp.com/icons/php.svg)](https://www.mailslurp.com/developers/) [![Ruby](https://www.mailslurp.com/icons/ruby.svg)](https://www.mailslurp.com/developers/) [![Playwright](https://www.mailslurp.com/icons/playwright.svg)](https://www.mailslurp.com/developers/) [![Selenium](https://assets-cdn.mailslurp.com/image-variants/340/assets/brands/icons/selenium.png?v=a3a8767f88cc5f45fbfb0ac77bc98e231ac4d061)](https://www.mailslurp.com/developers/)

### Integrate with any framework

Official plugins and SDKs for all major programming languages, frameworks, and test platforms. All functionality available via API or dashboard.

![Flexible integration patterns](https://assets-cdn.mailslurp.com/image-variants/1024/assets/home/cicd.png?v=a3a8767f88cc5f45fbfb0ac77bc98e231ac4d061)

### CI/CD Native

MailSlurp fits right into your existing development, testing, and CI/CD workflows. Deploy and iterate with confidence and actionable feedback.

[Developer Integrations](https://www.mailslurp.com/developers/)

## Video walkthroughs

[More on YouTube](https://www.youtube.com/@mailslurp)

### Automate email and SMS routing with webhooks and rules

### Build an email and SMS gateway with webhooks
