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.