interface MailTemplate
Since 0.1.0

A named body template. At least one of html/text must be present.

Properties

optional
html: string

HTML body template with {{ variable }} placeholders (values escaped).

optional
text: string

Plain-text body template with {{ variable }} placeholders (raw).

Usage

import { type MailTemplate } from "mail-plugin/src/index.ts";