Email MJML Components

Reusable MJML building blocks for Logic App email templates and API-generated emails (whitepaper, webinar). Components live in src/components/email/ (static .mjml fragments). The API uses the same files at runtime via renderEmailComponent(name, props) with a unified props interface (camelCase props map to {{UPPER_SNAKE}} placeholders).

See also: Email Template API (Wiki).

Components

Build & Include

Static templates use XML include comments; the preprocessor replaces them before MJML conversion.

Placeholder {{BASE_URL}} in fragments is replaced by SITE_URL (or default) at build time.

API emails (whitepaper/webinar requester) load these components via renderEmailComponent in src/utils/emailTemplates.ts, so edits to the .mjml files affect both static templates and API output.