---
url: "/emailify/export/mailgun-inspect.md"
description: "How to upload Emailify HTML exports from Figma directly to Mailgun Inspect for email client and device preview testing."
---

> How to upload Emailify HTML exports from Figma directly to Mailgun Inspect for email client and device preview testing.

# Testing HTML emails with Mailgun Inspect

Emailify includes a dedicated Mailgun Inspect integration for uploading HTML email tests directly from Figma. This is separate from both the Email on Acid integration and Emailify's Mailgun sending integration.

## Before you start

You'll need:

- A Mailgun account with access to Inspect email previews
- A Mailgun private API key
- The region associated with your Mailgun account: **US** or **EU**

You can copy your private API key from the [Mailgun API Security settings](https://app.mailgun.com/settings/api_security). Mailgun uses **api** as the API username and your private API key as the password.

> **Warning:** Treat your private API key like a password. Don't paste it into your Figma design, email content, or a file you plan to share.

## Upload an email test

1. Open Emailify in Figma and select the email frames you want to test.
2. Open the **Export** panel.
3. Select **Mailgun Inspect** under **Upload For Testing**.
4. Choose the **US** or **EU** Mailgun region for your account.
5. Paste your Mailgun private API key.
6. Click **Send To Mailgun Inspect**.
7. Log in to your [Mailgun account](https://app.mailgun.com/) to review the generated email previews.

Emailify creates a separate Mailgun Inspect preview test for each selected email. The request contains the generated HTML and subject line, while Mailgun Inspect determines the preview clients available for your account.

## Troubleshooting

If the upload fails:

- Confirm you selected the region that matches your Mailgun account.
- Check that you're using a current **private API key**, not a public validation key.
- Confirm your Mailgun plan includes Inspect email previews.
- Make sure any remotely hosted images in the email can be accessed publicly.

The Emailify export confirmation shows the error returned by Mailgun Inspect. You can still download the generated HTML files if an upload fails.

## Related documentation

- [Mailgun Inspect](https://www.mailgun.com/products/inspect/)
- [Mailgun Inspect API overview](https://documentation.mailgun.com/docs/inspect/api-reference/api-overview)
- [Testing your HTML emails before sending](/emailify/export/testing)
- [Email on Acid integration](/emailify/tutorials/export-html-email-tests-from-figma-to-email-on-acid)
