interface RenderedEmail

Returned by each template to its caller, which hands it to sendEmail with a recipient.

Properties

subject: string
html: string
text: string

The plain-text part, for clients that show no HTML. It is Markdown, so it reads as text and renders as the email's outline.

Usage

import { type RenderedEmail } from "api/mail/layout.ts";