> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Email editor Canonical URL: https://posthog.com/docs/workflows/email-editor ## On this page - [Add blocks](#add-blocks) - [Style it](#style-it) - [Personalize it](#personalize-it) - [Check it before it sends](#check-it-before-it-sends) - [Reuse it](#reuse-it) - [Bring your own HTML](#bring-your-own-html) You write every email in the same editor: transactional emails, broadcasts, and the emails in an automation. Type, press `/` to add a block, and style it in the panel on the right. Ask your agentwith the [PostHog MCP](https://posthog.com/docs/workflows/mcp.md)[designing-email-templates](https://posthog.com/docs/workflows/skills.md) “Write a welcome email for new signups, with our logo and brand colors.” Copy ![The email editor with the block menu and the style panel](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/email_editor_hero_light_0817e4d3b9.png) ## Add blocks Press `/`, or use the toolbar on the left, to add: - Text, headings, bullet and numbered lists, and quotes - Images, buttons, dividers, and spacers - Sections and columns, which stack on phones - Custom HTML, for anything else - An unsubscribe link Drag a block by its handle to move it, or use its menu to duplicate or delete it. ## Style it Click **Style** to set the page: the font, colors, width, and padding. Select a block to style only that block, such as a button's color and hover color, or a section's background. ![The email editor with a button selected and its style panel open](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/broadcast_content_editor_light_b1674ed99e.png) ## Personalize it Click `{x}` to add a variable, such as the person's first name, or type `{{`. Variables use [Liquid](https://posthog.com/docs/workflows/email/liquid.md), so add a default for people who don't have the property: ```liquid {{ person.properties.first_name | default: 'there' }} ``` To show a block to only some people, go to **Who sees it** and click **Show only when…**, then add a condition such as `person.properties.plan == 'paid'`. Under **Screens**, you can also show a block on desktop or phones only. ## Check it before it sends - **Preview** shows the email on desktop or a phone. Pick a person to fill in the variables. - **HTML** shows the HTML that sends, so you can copy it. - **Plain text** shows the plain-text version, which PostHog writes for you from the email. Send a test to yourself from the transactional email, broadcast, or automation. ## Reuse it Click **Save as new template** to save an email to your library, under **Templates** > **Email templates**. Start new emails from it with **Start from template**. Most templates from the old editor open in the new one, and opening a template doesn't change what it sends. See [template library](https://posthog.com/docs/workflows/email/library.md). To get a first draft, ask [PostHog AI](https://posthog.com/docs/posthog-ai.md) or your coding agent over [MCP](https://posthog.com/docs/workflows/mcp.md): "Write a welcome email for new signups." Its drafts open in the editor like any other email. ## Bring your own HTML Add a **Custom HTML** block for a piece of HTML that the blocks can't make. An email whose HTML comes from outside the editor, such as a template that you import from another tool or create over the API, sends exactly as written. To write the email in code instead, use [React Email](https://posthog.com/docs/workflows/transactional/send-from-code.md#react-email) and send it from your [server](https://posthog.com/docs/workflows/installation/quick-start.md).