Email Builder
BuildersEmail 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
styleattributes, and the<style>block with the media queries is kept. PassinlineCss: falsetorenderDesignto 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
widthattribute, because it ignores CSS widths. - Blocks with dark mode styles get a
prefers-color-scheme: darkrule.
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.