A lightweight, self-hosted multi-tenant web publishing platform

feat: custom email contents #8

Merged pre1ude.dev
targeting dev from feat/email-verification
Merged opened by pre1ude.dev
targeting dev from feat/email-verification

Custom Email Content Templates #

Changelog #

Email Delivery & Templates #

  • Added default HTML templates for email verification and password reset messages along with support for local custom template overrides.
  • Updated verification and password reset emails to send multipart plain-text and HTML messages, extracting the subject line from the template title and falling back to plain text if templates are missing.
  • Added directory containment checks when resolving custom template files to prevent path traversal.

Infrastructure & Configuration #

  • Configured backend container environments and orchestration volume mounts to expose the custom templates directory in both development and production setups.
  • Excluded user-created custom email override files from version control and automated formatting checks.

Testing #

  • Added unit tests covering default and custom template rendering, link escaping, title-based subject extraction with fallbacks, and multipart message construction.
Commits 1

feat: custom email contents
Sign up or Sign in to add to the discussion.