Overview
Migma creates emails compatible with ALL email service providers through intelligent code generation and dynamic variable support. Export to HTML, React Email, or MJML with ESP-specific variables preserved.No Vendor Lock-In
Export to any format, use anywhere
ESP Variables
HubL, Liquid, Mustache, and more preserved
Universal Compatibility
Works with 30+ email clients
Export Formats
1. HTML (Email-Safe)
Standard HTML with inline CSS - works everywhere- Features
- Compatibility
- Technical Details
Includes:
- Inline CSS styles
- Table-based layout (Outlook compatible)
- Email-safe HTML tags only
- Responsive media queries
- Dark mode support
- Proper DOCTYPE for email clients
- Direct ESP upload
- Maximum compatibility
- Simple workflows
2. React Email
React components for modern email workflows- Features
- Example Output
- Integration
Migma generates:
- Clean JSX components
- Tailwind CSS classes
- TypeScript support (optional)
- Reusable components
- Props for customization
- Next.js applications
- Developer workflows
- Version control (Git)
- Component reusability
- Programmatic email generation
3. MJML
Responsive email framework markup- Features
- Example Output
- Compile
MJML output includes:
- Semantic MJML tags
- Automatic responsiveness
- Clean code structure
- ESP compatibility built-in
- MJML-based workflows
- Marketing teams using MJML
- Framework flexibility
ESP-Specific Variables
How Migma Handles Dynamic Variables
Migma preserves ESP variables during export. You can use any template language:HubSpot (HubL)
HubSpot (HubL)
Syntax: Migma preserves:
{{ variable_name }}Example in Migma:- Variables:
{{ contact.* }} - Conditionals:
{% if %}...{% endif %} - Loops:
{% for %}...{% endfor %} - Filters:
{{ variable|upper }}
Mailchimp (Merge Tags)
Mailchimp (Merge Tags)
Klaviyo (Liquid)
Klaviyo (Liquid)
Syntax: Migma preserves:
{{ variable }} and {% tag %}Example in Migma:- Variables with filters
- Conditionals
- Loops
- Custom properties
SendGrid (Handlebars)
SendGrid (Handlebars)
Syntax: Migma preserves:
{{variable}} and {{#if}}...{{/if}}Example in Migma:- Variables
- Conditionals
- Loops
- Helpers
Amazon SES (Mustache)
Amazon SES (Mustache)
Syntax: Migma preserves:
{{variable}}Example in Migma:- Simple variables
- Sections (loops)
- Inverted sections
Custom Variables
Custom Variables
Any syntax supported!Tell Migma which variables to preserve:Migma recognizes and preserves your custom format
How to Use ESP Variables
During Email Creation
In your prompts:- Generate email structure
- Insert variables in correct locations
- Preserve exact variable syntax
- Export with variables intact
In Visual Editor
Add variables manually:- Click text element
- Type variable syntax directly:
Hello {{ firstname }}! - Variables highlighted in editor
- Preserved on export
- Click “Insert Variable” button
- Select ESP type (HubSpot, Mailchimp, etc.)
- Choose variable from list
- Inserted with correct syntax
Export Process
1
Finalize Email
Complete your email in Migma chat or visual editor
2
Click Export
Click “Export” button in toolbar
3
Choose Format
Select export format:
- HTML (email-safe)
- React Email (JSX)
- MJML
4
Configure ESP Settings
If using ESP variables:
- Select your ESP from dropdown
- Verify variable syntax
- Enable/disable features
- Include unsubscribe link
- Add tracking pixels
- Preserve ESP comments
5
Download or Copy
Download: Get .html, .jsx, or .mjml file
Copy: Copy code to clipboard
Direct export: Send to integrated ESP
6
Upload to ESP
Paste/upload to your email service provider
Direct ESP Export
Export directly to integrated platforms:Mailchimp
One-click export:
- Click “Export to Mailchimp”
- Select campaign or template
- Authorize (first time)
- Email uploads automatically
Klaviyo
Direct integration:
- Click “Export to Klaviyo”
- Choose template or campaign
- Authenticate
- Syncs to Klaviyo account
HubSpot
Push to HubSpot:
- Export to HubSpot
- Select email type
- OAuth authorization
- Creates draft in HubSpot
Custom Webhook
Send via webhook:
- Configure webhook URL
- Map email fields
- Set authentication
- POST email HTML/JSON
Platform Integrations
Complete guide to ESP integrations
Email Client Compatibility
How Migma Ensures Compatibility
Inline CSS
Inline CSS
All styles inlined for email clients that strip After export:
<style> tagsBefore:Table-Based Layouts
Table-Based Layouts
Outlook compatibility requires table layoutsMigma uses:Why: Outlook uses Word rendering engine (doesn’t support modern CSS)
Conditional Comments
Conditional Comments
Outlook-specific fixes:Only Outlook sees table wrapper
Web Fonts with Fallbacks
Web Fonts with Fallbacks
Google Fonts + fallbacks:If font fails: Falls back to Arial, then sans-serif
Dark Mode Support
Dark Mode Support
Automatic dark mode styles:Works in: Apple Mail, Gmail, Outlook (iOS)
Responsive Design
Responsive Design
Media queries for mobile:Columns stack on mobile automatically
Download Options
File Formats
- .html
- .jsx / .tsx
- .mjml
- .zip
Single HTML file
- Complete, standalone email
- Inline CSS
- Base64-encoded images (optional)
- Ready to upload anywhere
Copy Options
Quick copy to clipboard:Copy HTML
Copies complete HTML code
Copy Inline
HTML with all CSS inlined
Copy Preview
Text-only preview version
Ctrl/Cmd + Shift + C
Advanced Export Features
Custom Code Injection
Add tracking pixels, analytics, etc.:1
Open Export Settings
Click “Advanced” in export dialog
2
Inject Head Code
3
Inject Body Code
4
Export
Code injected in correct locations
Batch Export
Export multiple emails:- Select emails to export (checkbox)
- Click “Batch Export”
- Choose format
- Download as .zip with all emails
Testing Exports
Before Upload
Always test exports:Send test email to yourself
Check on mobile device
Test in primary email clients
Verify links work
Check ESP variables render correctly
Email Preflight
Test on 30+ devices before export
Troubleshooting
Variables not working in ESP
Variables not working in ESP
Problem: ESP doesn’t recognize variablesSolutions:
- Verify correct syntax for your ESP
- Check variable names match ESP fields
- Ensure variables not accidentally encoded
- Test with simple variable first
Layout broken in Outlook
Layout broken in Outlook
Problem: Email looks wrong in OutlookSolutions:
- Re-export with “Outlook optimization” enabled
- Ensure table-based layout
- Check conditional comments intact
- Avoid flexbox/grid CSS
Images not displaying
Images not displaying
Problem: Images broken after uploadSolutions:
- Use absolute URLs (not relative)
- Host images on CDN
- Check image URLs accessible
- Use Migma’s CDN (automatic)
Dark mode issues
Dark mode issues
Problem: Unreadable in dark modeSolutions:
- Enable “Dark mode styles” in export
- Test with Email Preflight
- Use dark-mode-safe colors
Next Steps
Platform Integrations
Setup ESP integrations
Email Preflight
Test before export
Sending Emails
Send directly from Migma
API Export
Automate exports via API