# Zapier

<a href="https://zapier.com/apps/mailtrap/integrations" class="button primary">View on Zapier Marketplace</a>

## Overview

Using the Mailtrap integration with Zapier, you can automate email sending by connecting Mailtrap to over 7,000 other applications without any coding. This guide shows you how to set up the integration, create automations, and manage your connections.

### Connecting Mailtrap to Zapier

{% stepper %}
{% step %}
Log in to your [Zapier account](https://zapier.com/sign-up) or create a new account.
{% endstep %}

{% step %}
Navigate to **Apps** in the left-hand side menu.

<div align="left" data-with-frame="true"><img src="/files/b3rZZXwLKWnXlue13oYw" alt="" width="563"></div>
{% endstep %}

{% step %}
Click **Add connection**.

<div align="left" data-with-frame="true"><img src="/files/7puyXQunslemdr5UHTgG" alt="" width="563"></div>
{% endstep %}

{% step %}
Type *Mailtrap* in the **App name** search bar.

<div align="left" data-with-frame="true"><img src="/files/V03mQ9o20lDm7RMjaHiC" alt="" width="375"></div>
{% endstep %}

{% step %}
Enter your Mailtrap API key to allow Zapier to access your account.

**Note**: This should be the token for the domain you've added and verified in Mailtrap. You'll find it in the **Settings** → **API Tokens** menu.

<div align="left" data-with-frame="true"><img src="/files/jRZfgnOeBWR1IquqQ3Vn" alt="" width="375"></div>
{% endstep %}
{% endstepper %}

### Creating an automation

To set up trigger-based email sending via Mailtrap in Zapier, you need to create a Zap.

A Zap is a workflow connecting multiple apps that consists of a trigger (an event that starts a Zap) and one or more actions (events the Zap performs).

#### Using Copilot

{% stepper %}
{% step %}
Describe the workflow you want to create to Copilot.

<div align="left" data-with-frame="true"><img src="/files/Raiu4YnRbCJadhUSvIMP" alt="" width="375"></div>
{% endstep %}

{% step %}
Add some or all the steps created by Copilot to the Zap or continue to prompt the chatbot to add or replace steps.

<div align="left" data-with-frame="true"><img src="/files/vb5RbWztocxPN1mf0dmC" alt="" width="563"></div>
{% endstep %}

{% step %}
Configure the required fields for sending an email. The from email should contain the same sending domain you added and verified in Mailtrap.

<div align="left" data-with-frame="true"><img src="/files/kOO5FASMELMRlcZDyOme" alt="" width="188"></div>
{% endstep %}

{% step %}
Send a test email to Mailtrap (optional).

<div align="left" data-with-frame="true"><img src="/files/PTIKmZljdFJxHRX6p7xq" alt="" width="188"></div>
{% endstep %}

{% step %}
Publish the Zap.
{% endstep %}
{% endstepper %}

#### Manually

{% stepper %}
{% step %}
Select an event (trigger) to start your Zap.

<div align="left" data-with-frame="true"><img src="/files/Ft16tKyXdLIcrsFnKVMl" alt="" width="375"></div>

Zapier's app directory contains 7,000+ apps with triggers and actions available for each.

<div align="left" data-with-frame="true"><img src="/files/muLt1JW3HArCuk2yGvbJ" alt="" width="375"></div>
{% endstep %}

{% step %}
Search for and select **Mailtrap** as the action for your Zap to run.
{% endstep %}

{% step %}
Select **Send Email** as the action event.

<div align="left" data-with-frame="true"><img src="/files/xsQNEmOf6bC4RIShrOro" alt="" width="188"></div>
{% endstep %}

{% step %}
Configure the required fields for sending an email.

<div align="left" data-with-frame="true"><img src="/files/kOO5FASMELMRlcZDyOme" alt="" width="188"></div>
{% endstep %}

{% step %}
Send a test email to Mailtrap (optional).

<div align="left" data-with-frame="true"><img src="/files/PTIKmZljdFJxHRX6p7xq" alt="" width="188"></div>
{% endstep %}

{% step %}
Publish the Zap.
{% endstep %}
{% endstepper %}

### Removing Mailtrap credentials from Zapier

{% stepper %}
{% step %}
Navigate to **Apps** in the left-hand side menu.

<div align="left" data-with-frame="true"><img src="/files/b3rZZXwLKWnXlue13oYw" alt="" width="563"></div>
{% endstep %}

{% step %}
Click on your Mailtrap connection.

<div align="left" data-with-frame="true"><img src="/files/zPnzAwzCovmLoPdGAT1t" alt="" width="563"></div>
{% endstep %}

{% step %}
Click the three-dot menu and then **Delete** in the dropdown menu. Using the same menu, you can edit the connection name, reconnect, test the connection, and view Zaps created using the connection.

<div align="left" data-with-frame="true"><img src="/files/4QHdOK3z0Ic2qJqTIXOR" alt="" width="563"></div>
{% endstep %}
{% endstepper %}

## Next steps

After setting up your Mailtrap and Zapier integration, you can create unlimited Zaps to automate your email workflows and connect your favorite apps seamlessly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mailtrap.io/guides/integrations/zapier.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
