Email templates

Build executable TSX email templates with validated inputs, named fixtures, reusable components, and immutable publications.

Email templates are TSX projects. Each entry default-exports a defineEmail definition with a stable id, portable JSON input schema, named fixtures and a synchronous render function. Render returns subject, optional preheader, body and optional plain text. HTML and text are derived output.

Start with Authoring in TSX, then learn about inputs, components and conditional content.

Local preview, build and export work without Samva credentials. Hosted Save uses ordinary Git; Publish creates an immutable artifact from an exact commit. Send using an exact publication pin, or explicitly select latest within an input-contract version. Accepted scheduled messages retain the resolved publication. Raw HTML/text email sending remains available independently of templates.