Email Builder

Builders

Email Builder

The default builder. A drag-and-drop canvas that outputs email-safe HTML tested across Gmail, Apple Mail, Outlook and more.

tsx
<EmailEditor token="pk_live_…" options={{ displayMode: "email" }} />

displayMode: "email" is the default, so you can omit it. Every content block, merge tags, inbox previews and pre-send QA apply here. Export with exportHtml (or exportPlainText / exportAmp / exportZip); MJML is available server-side via renderMjml.

What the HTML does for inboxes

  • CSS is inlined into style attributes, and the <style> block with the media queries is kept. Pass inlineCss: false to renderDesign to skip inlining.
  • Below 620px (or body.mobile_breakpoint) columns stack and buttons fill the column. See responsive controls.
  • Outlook on Windows gets VML for rounded buttons and row background images, and images get a pixel width attribute, because it ignores CSS widths.
  • Blocks with dark mode styles get a prefers-color-scheme: dark rule.

Size

Gmail clips an email whose HTML is over about 102 KB. Pre-send QA warns when the email passes that, and shows a notice when it gets close. Linked images do not count, but uploads stored as data: URLs (no upload handler) are part of the HTML, so set up image uploads before you send.