React Email writes the HTML.
21 clients rewrite it.
Render the component with the same data your app sends, then lint that HTML. Emailens tells you what Outlook, Gmail and 19 other clients will do to it. Runs locally. No account.
# After your app's React Email render step writes HTML:
npx emailens lint 'dist/emails/**/*.html' What your container width does in real Outlook
React Email centres the layout with max-width. Here is that property on real installs, where it holds and where it doesn't.
caniemail: max-width is partly supported in Outlook Classic.
More versions (2)
Partial. Only works on <table> elements.
caniemail: max-width works in Outlook 365.
This Outlook.com install drops the <style> in the head, so only inline styles apply.
Every account includes one free real-device check in classic Outlook and Apple Mail, after you verify your email and run one preview, while this month's free capacity lasts. How real-device checks work →
Findings with a client, a line, and a reason
This is the output for a template built from Container, Button and Tailwind. The command exits non-zero when it finds an error.
out/welcome.html
error spam missing-unsubscribe No unsubscribe link found; required by CAN-SPAM and GDPR.
warn 37:47 protonmail text-decoration Proton Mail does not support "text-decoration".
warn 37:124 outlook-windows border-radius Outlook (New) does not support "border-radius". The gap between your preview and the inbox
React Email's components are built for compatibility, and the preview server still renders in a browser. These are findings from a template built with stock components.
border-radius Outlook on Windows does not support it, so a rounded <Button> ships square unless it has a VML fallback.
max-width Outlook only honours max-width on a table it actually reads. A centered 600px layout is the usual casualty.
padding Outlook Classic keeps padding on table cells only. Spacing set anywhere else is dropped.
text-decoration Proton Mail does not support it, and it is what removes the underline from a button or link.
The email as a whole
Missing unsubscribe link, missing physical address, empty <title>, preheader too short: the things spam filters and inbox previews read.
Block the pull request that breaks Outlook
Run your normal email render step with production props, then lint the generated files. No API key, no quota, no network call to Emailens.
Check the HTML your app actually sends
import { render } from "@react-email/render";
import Welcome from "./emails/welcome";
import { writeFile } from "node:fs/promises";
// Render with the same data used by your send path.
const html = await render(<Welcome name="Ada" />);
await writeFile("dist/emails/welcome.html", html); The React Email CLI's static email export is a fallback for workflows that need generated HTML. For dynamic messages, render in your app with real props and check that output.
GitHub Actions
# .github/workflows/email-lint.yml
name: Email lint
on:
pull_request:
paths: ["emails/**"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm run build:emails
- run: npx emailens lint 'dist/emails/**/*.html' Your AI writes the email. Emailens checks it.
Add the MCP server and Claude Code or Cursor can lint the template it just wrote, read the findings, and fix them before you review the diff.
$ claude mcp add emailens -- npx -y @emailens/mcp Common questions
Does Emailens replace React Email? +
No. React Email is how you write and render the email. Emailens checks the HTML it produces against 21 email clients. You keep your components, your preview server, and your sending provider.
Do I need an account or an API key? +
No. The CLI runs the open-source @emailens/engine on your machine or your CI runner. There is no quota and nothing is uploaded. An account is only needed for hosted screenshots, share links, and the REST API.
Can I lint the .tsx files directly? +
Only self-contained templates. Direct compilation supports imports from react and React Email components (the current react-email package or the older @react-email/components package), but not shared local components or helpers. For a real project, render with your app's normal pipeline and lint the output.
What if I use the React Email static export command? +
Static export renders without your send-time props. Give required props defaults, or use your app's render path with the real data before linting.
How is the score calculated? +
Each client gets a score from 0 to 100. The headline score is the worst client, not an average, because an email that renders in twenty clients and breaks in Outlook is a broken email.
Does it work with Tailwind in React Email? +
Yes. React Email's Tailwind component inlines supported classes. With rem-based Tailwind values, use pixelBasedPreset so email clients receive pixel lengths; unsupported utilities can still need an email-safe fallback.
Lint your next template
Runs locally. No signup required.
$ npm run build:emails && npx emailens lint 'dist/emails/**/*.html' Using something else? Lint HTML email templates or Lint MJML templates or Lint Maizzle templates
New to React Email? React Email Guide: Build JSX Emails That Hold Up in Outlook