# Dash-email — build, preview, and operate an Email Post Office without leaving Dash

**URL:** <https://community.plotly.com/t/dash-email-build-preview-and-operate-an-email-post-office-without-leaving-dash/97290>\
**Category:** Dash Python\
**Tags:** community-components\
**Created:** [July 17, 2026, 6:33pm UTC](https://community.plotly.com/t/dash-email-build-preview-and-operate-an-email-post-office-without-leaving-dash/97290 "2026-07-17T18:33:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PipInstallPython](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/pipinstallpython/32/34539_2.png) [@PipInstallPython](https://community.plotly.com/u/PipInstallPython)\
**Post date:** [July 17, 2026, 6:33pm UTC](https://community.plotly.com/t/dash-email-build-preview-and-operate-an-email-post-office-without-leaving-dash/97290/1 "2026-07-17T18:33:39Z")

</div>

Hi all 👋

[![](https://img.youtube.com/vi/_30EHZ1-2vs/maxresdefault.jpg "Dash Email: Build, Preview & Send Emails Inside Your Dash App") ](https://www.youtube.com/watch?v=_30EHZ1-2vs)

I just released **dash-email** , a component library for building HTML email templates using plain Dash syntax. It wraps the component patterns from [React Email](https://react.email) so you can design an email the same way you build a layout — nested components with inline styles — then preview it live and send it, all inside a Dash app.

 ![Screenshot 2026-07-17 at 1.31.53 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/6/0/60e08ac0ea18db1e39dc9e3ee40cdc295e2f1e2f.png)

> Check out the canvas preview of the pages - [ai-agent.buzz | AI Whiteboard](https://ai-agent.buzz/?id=748097b7-a4db-4efa-9f1c-8dbb15b2398b)

**Why I built it:** HTML email is genuinely miserable. Clients strip `<style>` tags, half of them still lay things out with `<table>`, and what looks right in Gmail breaks in Outlook. dash-email handles that for you: rows and columns render as real tables, every style is inlined, and the output is tested against Gmail, Outlook, and Apple Mail. You write Dash; it emits email-safe HTML.

### The part I think this community will care about

Every component is a **first-class Dash component** — it takes an `id` and works with callbacks like anything else. So you can drive an email’s content from the same inputs, stores, and callbacks you already use. Live-editing a template from a form, personalizing a send from a dropdown, previewing before it goes out — it’s all just normal Dash.

### Quick example

```python
import dash
import dash_email as de

app = dash.Dash( __name__ )

app.layout = de.Email(
    lang="en",
    children=[
        de.EmailBody(
            style={"backgroundColor": "#f6f9fc", "padding": "40px 0"},
            children=[
                de.EmailContainer([
                    de.EmailSection(
                        style={"backgroundColor": "#ffffff", "borderRadius": "8px", "padding": "40px"},
                        children=[
                            de.EmailHeading("Welcome!", as_="h1"),
                            de.EmailText("Thanks for signing up. We're excited to have you!"),
                            de.EmailButton(
                                "Get Started",
                                href="https://example.com",
                                style={
                                    "backgroundColor": "#228be6",
                                    "color": "#ffffff",
                                    "padding": "12px 24px",
                                    "borderRadius": "4px",
                                    "fontWeight": "bold",
                                },
                            ),
                        ],
                    )
                ])
            ],
        )
    ],
)

if __name__ == " __main__":
    app.run(debug=True)

```

### 15 email-safe components

| Category | Components |
| --- | --- |
| **Structure** | `Email`, `EmailHead`, `EmailPreview`, `EmailBody` |
| **Layout** | `EmailContainer`, `EmailSection`, `EmailRow`, `EmailColumn` |
| **Content** | `EmailHeading`, `EmailText`, `EmailButton`, `EmailLink` |
| **Media** | `EmailImage`, `EmailDivider`, `EmailFont` |

`EmailRow`/`EmailColumn` render as `<table>`/`<td>`, `EmailButton` is a bulletproof styled anchor, and `EmailPreview` sets the inbox preview text that shows next to the subject line.

### There’s also an AI builder — and a no-key showcase mode

The bundled docs app ships an `/email-builder` page that generates a full template from a plain-English prompt (via Google Gemini) and hands you ready-to-paste Python. If you run it **without** an API key, it drops into a showcase mode that serves a set of curated example templates instead — so you can explore the builder end-to-end with nothing to configure.

### Sending

Sending is wired up through [Resend](https://resend.com) — single sends, batches up to 100 recipients, and scheduled delivery — but the components are just producing standard HTML, so you can hand that HTML to any provider you like.

### Try it

- 🖼 **Live demo:** _(hosted on Render’s free tier, so the first load may take ~30s to wake up)_

> **[dash-email | Home](https://email.2plot.dev)**
>
> dash-email — 15 email-safe Plotly Dash components wrapping React Email patterns. Build, preview and send HTML emails from Python: Email, EmailBody, EmailContainer, EmailSection, EmailRow, EmailColumn, EmailHeading, EmailText, EmailButton, EmailLink,...

- 📦 **PyPI:** `pip install dash-email` — [Client Challenge](https://pypi.org/project/dash-email/)
- 🐈 **Source:** [GitHub - pip-install-python/dash-email: Email components for Plotly Dash, wrapping React Email patterns. · GitHub](https://github.com/pip-install-python/dash-email)

The [docs site](https://dash-email-svmp.onrender.com) is open source too — clone the repo, `pip install -r requirements.txt`, `python run.py`, and you get every component page with isolated live examples plus the builder. Each docs page also serves an LLM-friendly plain-text version at `/<page>/llms.txt`.

### Status

It’s an early release (0.0.x). The **component API is stable** and safe to build on; the AI builder and sending utilities are still evolving. Requires **Python  
3.9+ **and** Dash 4.2+**.

I’d love feedback — especially on the component API and on any email-client rendering quirks you hit. If it’s useful to you, a ⭐ on GitHub helps others find it.

---

<div class="post-metadata">

**Author:** ![PipInstallPython](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/pipinstallpython/32/34539_2.png) [@PipInstallPython](https://community.plotly.com/u/PipInstallPython)\
**Post date:** [September 4, 2026, 12:22pm UTC](https://community.plotly.com/t/dash-email-build-preview-and-operate-an-email-post-office-without-leaving-dash/97290/3 "2026-09-04T12:22:15Z")

</div>

Have a sneaking suspicion this is a bot farm starting to target some of my posts. Just wanted to be clear, this isnt me and I’m not doing this.

Also if the farmer reads this, i appreciate it but its not necessary.

---

<div class="post-metadata">

**Author:** ![Robert\_Claus](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/robert_claus/32/32787_2.png) [@Robert\_Claus](https://community.plotly.com/u/Robert_Claus)\
**Post date:** [September 9, 2026, 10:37pm UTC](https://community.plotly.com/t/dash-email-build-preview-and-operate-an-email-post-office-without-leaving-dash/97290/4 "2026-09-09T22:37:34Z")

</div>

@PipInstallPython could you clarify what you meant with a bot farm? Do you mean this initial post wasn’t from you?
