Search documentation

Find a page in the Andurel docs.

email

andurel generate email authors a new email template under email/. Compiling Tailwind in emails and refreshing renderers is andurel sync email.

When to use

  • Create email/NAME.templ for transactional or marketing mail.
  • Do not use this to recompile styles after editing a template; run sync email.

Usage

1andurel generate email NAME [flags]

NAME is CamelCase (for example WelcomeEmail or Receipt).

Flags

Flag What it does
--dry-run / --diff Preview without writing; see generate

Email has no other command-local flags.

Examples

1andurel generate email WelcomeEmail --dry-run --json
2andurel generate email WelcomeEmail
3andurel generate email Receipt

This creates a template such as email/welcome_email.templ. Keep delivery behind the generated sender interfaces so development and production providers can differ without changing application workflows.

Next

1andurel sync email

See Email for compile, send, and provider boundaries.