Skip to main content

Overview

Export your emails in multiple formats or push directly to your email service provider. All export options are available from the Publish button in the email viewer.
Export is available on paid plans only.

Export Formats

Production HTML with inlined CSS, table layouts for Outlook, responsive rules, and dark mode metadata. Ready for any ESP.

Provider Handoff

Prepare your email in an integrated platform without rebuilding it there:

Mailchimp

Export a Mailchimp template or draft campaign. Choose between plain HTML or Mailchimp-optimized HTML with merge tags (*|FNAME|*, *|EMAIL|*, etc.).

Klaviyo

Export a Klaviyo template or campaign draft for final review in Klaviyo.

HubSpot

Export HubSpot-ready draft email work for review in HubSpot.

Omnisend

Export to Omnisend as a draft campaign after connecting OAuth.

Brevo

Export as a Brevo template.
Each integration requires a one-time connection setup in your integration settings.

Design Handoff

Figma

Export reviewed email work for Figma handoff when designers need to inspect or adapt it outside Migma.

How to Export

1

Open the Publish menu

Click Publish in the email viewer toolbar.
2

Choose your destination

Select an ESP integration or click Get the Code for format export.
3

Copy or download

Copy the code to your clipboard or download the file. For ESP exports, follow the integration-specific flow to create a draft or template.
Additional options:
  • Minification toggle — switch between pretty-printed and minified HTML (shows file size)
  • Mailchimp merge tags — when exporting to Mailchimp, choose “Merged Tags HTML” to auto-convert personalization variables to Mailchimp syntax
  • Omnisend drafts — connect Omnisend once, then export campaigns as drafts for final review in Omnisend

ESP Variables

Migma preserves ESP template variables during export. Include variables in your prompt using your ESP’s syntax:
Supported syntaxes include HubL ({{ }}), Liquid ({{ }}/{% %}), Mailchimp merge tags (*|FIELD|*), Handlebars ({{field}}), and Mustache ({{field}}).

Programmatic Export

Export emails via the SDK, CLI, or MCP.
The CLI supports core file and platform formats. Run migma export --help to see the destinations available in your installed version.

Next Steps

Platform Integrations

Set up platform connections

Email Service Providers

Choose a direct sending provider

Email Preflight

Test before exporting

Outlook without domain setup

Share HTML through Outlook during a trial

Send a Campaign

Send directly from Migma

API Reference

Automate exports via API