--- name: "md-to-eml" description: Convert Markdown to RFC 5322 email (.eml) with inline CSS and CID images. Use when the user asks to convert to email, make an eml, or export markdown as an .eml file. lastReviewed: 2026-07-28 --- # Md To Eml > Write in Markdown, send as professional email — works in any email client Convert Markdown documents with YAML frontmatter into RFC 5322-compliant `.eml` files ready for governance, newsletter, and stakeholder communication workflows. --- ## When to Use - Sending formatted content via email clients (Outlook, Thunderbird, etc.) - Newsletter or governance communication from Markdown sources - Generating test emails for review before batch sending - Converting documentation into distributable email format - Creating email templates with consistent branding - Stakeholder updates with embedded charts or diagrams --- ## Supported Formatting | Format | Status | Notes | |--------|--------|-------| | **Headings** | ✅ | H1-H6 with inline styles | | **Bold/Italic** | ✅ | Standard emphasis | | **Links** | ✅ | Clickable hyperlinks | | **Images** | ✅ | CID embedded as attachments | | **Code blocks** | ✅ | Monospace, gray background | | **Inline code** | ✅ | Highlighted | | **Tables** | ✅ | HTML tables with borders | | **Blockquotes** | ✅ | Indented with border | | **Lists** | ✅ | Ordered and unordered | | **Mermaid diagrams** | ⚠️ | Table fallback (no JS in email) | | **Emoji** | ✅ | Unicode preserved | | **Horizontal rules** | ✅ | Styled dividers | --- ## Key Features | Feature | Details | |---------|---------| | YAML frontmatter | Maps to RFC 5322 headers (To, From, Subject, CC, Reply-To) | | Email-safe HTML | Inline CSS with table-based layout (no `