# Mailtrap integrations: emails and sending domains

> Send a transactional email, create a domain and create a contact in Mailtrap, and start a workflow when Mailtrap sends “Email delivered”.

**Canonical page:** https://tray.ai/connectors/mailtrap-integrations/
**Categories:** Communication
**Connects through:** HTTP Connector

## Overview

Mailtrap is an email delivery platform with transactional and bulk sending, a sandbox for testing emails before release, and tools for marketing campaigns. Tray.ai connects to Mailtrap through the HTTP Connector, so your workflows can call the Mailtrap API alongside the rest of your stack.

## Use cases

### Emails

Create and manage emails in Mailtrap from any Tray.ai workflow. The Mailtrap API covers calls such as send a transactional email and send a bulk email.

- Send a transactional email
- Send a bulk email
- Batch send emails

### Sending domains

Read, create, and delete sending domains in Mailtrap from any Tray.ai workflow. The Mailtrap API covers calls such as list domains and create a domain.

- List domains
- Create a domain
- Get a domain

### Contacts

Read, create, update, and delete contacts in Mailtrap from any Tray.ai workflow. The Mailtrap API covers calls such as list contacts and create a contact.

- List contacts
- Create a contact
- Update a contact

### Contact lists

Read, create, update, and delete contact lists in Mailtrap from any Tray.ai workflow. The Mailtrap API covers calls such as list contact lists and create a contact list.

- List contact lists
- Create a contact list
- Update a contact list

### Email campaigns

Read and create email campaigns in Mailtrap from any Tray.ai workflow. The Mailtrap API covers calls such as list email campaigns and create an email campaign.

- List email campaigns
- Create an email campaign
- Start an email campaign

### Sandbox messages

Read and manage sandbox messages in Mailtrap from any Tray.ai workflow. The Mailtrap API covers calls such as get messages and show an email message.

- Get messages
- Show an email message
- Forward a message

## Challenges Tray.ai solves

### Keeping Mailtrap credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Mailtrap credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Mailtrap API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Mailtrap API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Mailtrap?

Yes. Tray.ai connects to Mailtrap through the HTTP Connector, which calls the Mailtrap API directly. Any call the Mailtrap API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with Mailtrap?

The Mailtrap API uses an API key in a request header and a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated Mailtrap connector?

Mailtrap runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Mailtrap connector from the Mailtrap API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
