> ## Documentation Index
> Fetch the complete documentation index at: https://docs.migma.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Preflight

> Test your emails for compatibility, deliverability, and content quality before sending

## Overview

Run automated checks before send. Preflight runs on Migma's production HTML: client previews, CSS compatibility, links, grammar, compliance basics, and AI spam and deliverability review in one dialog.

<Info>
  Preflight is available on **paid plans** only.
</Info>

***

## How to Run Preflight

<Steps>
  <Step title="Open any email">
    Navigate to an email conversation or draft in the editor.
  </Step>

  <Step title="Click the Compatibility Check button">
    Click the **Compatibility Check** icon in the code view toolbar.
  </Step>

  <Step title="Review results">
    Preflight runs through 5 stages automatically. Results appear as each stage completes.
  </Step>
</Steps>

***

## What Gets Tested

### Client Previews

See how your email renders across popular email clients:

* **Web:** Gmail, Yahoo, AOL, Outlook.com, iCloud, Hey, Superhuman
* **Desktop:** Apple Mail, Mailbird, Zimbra
* **Mobile:** iPhone, iPad, Android

Each client shows a preview image with a pass/fail status indicator.

### CSS Compatibility

Checks your email's CSS against known email client support. Reports which clients have errors or warnings so you can fix compatibility issues before sending.

### Link Validation

Tests every link in your email:

* Detects broken links (404 errors)
* Checks response times
* Flags unreachable URLs

### Grammar & Content

* **Spelling errors** — catches typos and misspellings
* **Language detection** — identifies the email language
* **Content quality** — readability, tone, and complexity scoring
* **Brand voice** — how well the content matches your brand (if configured)
* **Compliance** — checks for unsubscribe link, sender identification

### Deliverability Score

* **Spam score** — identifies spam trigger patterns
* **Category prediction** — predicts whether the email will land in Inbox, Promotions, or Spam
* **Content signals** — flags promotional, transactional, or engagement keywords
* **Recommendations** — actionable tips to improve inbox placement

### AI-powered spam review

Preflight treats spam risk as a first-class check—not just DNS or list hygiene. The deliverability stage analyzes subject lines, body copy, link density, promotional language, and missing compliance elements (such as unsubscribe or sender identification) that often correlate with spam folder placement.

When issues are found:

1. Review red and yellow items in the Preflight panel.
2. Click **Fix with AI** to generate an edit prompt that targets flagged issues.
3. Apply changes in the editor and **run Preflight again** before sending or exporting.

Pair Preflight with [CAN-SPAM checklist](/compliance/can-spam-checklist) and [sending rules](/get-started/what-you-can-send) so content and list quality both meet your standards.

For client rendering details, see [Email client compatibility](/email-editor/client-compatibility).

***

## Reading Results

Each stage shows a status:

* **Green check** — passed, no issues
* **Yellow warning** — minor issues, review recommended
* **Red error** — critical issues, fix before sending

The deliverability stage shows an overall score from 0–100% with a predicted delivery location.

### Fix with AI

Click **Fix with AI** to generate a prompt that addresses all flagged issues at once.

### Share Results

Click **Share** to generate a public URL for your preflight results. Useful for team reviews.

***

## Tips

* Run preflight before every important campaign
* Fix red issues first — they impact deliverability
* Check the deliverability score to avoid the spam folder
* Re-run after making changes to confirm fixes

***

## Programmatic Validation

Run preflight checks via the [SDK](/sdk), [CLI](/cli), or [MCP](/mcp-server).

```typescript theme={null}
const { data } = await migma.validation.all({ html, conversationId });
```

The CLI supports individual checks: `migma validate all|compatibility|links|spelling|deliverability`.

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Export Options" icon="download" href="/email-editor/export-options">
    Export your tested emails
  </Card>

  <Card title="Send a Campaign" icon="paper-plane" href="/campaigns/send-campaign">
    Send your preflight-approved emails
  </Card>
</CardGroup>
