Skip to content

A.5: Email Templates ​

Summary ​

Admins create, edit, preview, test, and delete email templates used by the backend email delivery service.

Role ​

  • Primary: Admin
  • Secondary: System, Resend

Entry Point ​

  • List tab: /admin/system-settings?tab=email
  • Detail: /admin/system-settings/email-templates/:templateId

Preconditions ​

  • User is authenticated as admin.

Steps ​

  1. Admin opens the email templates tab.
  2. Admin creates a new template or opens an existing one.
  3. Admin edits key, language, subject, body, and metadata.
  4. Admin previews rendered content.
  5. Admin optionally sends a test email.
  6. Admin saves or deletes the template.

Diagram ​

Edge Cases ​

  • Test email: Test sends directly through template service and does not create a notification delivery record.
  • Template key/language: Runtime email delivery looks up by key and language with English fallback.
  • Delete: Deleting a template can affect future transactional email delivery.

Current Implementation Notes ​

  • Frontend: frontend/src/app/pages/admin/system-settings.tsx, frontend/src/app/pages/admin/email-template-detail.tsx
  • Backend: backend/internal/services/email_template_service.go

Screenshot Status ​

  • Not captured.