feat(email): EmailContent supports htmlMessage alternative #30

Merged
mprihoda merged 1 commit from SUPP-MEDH-156-email-html-message into main 2026-05-28 05:57:31 +00:00
mprihoda commented 2026-05-15 21:35:35 +00:00 (Migrated from github.com)

Summary

  • EmailContent gains a trailing-default htmlMessage: Option[String] = None. When set, CommonsEmailNotificationService builds an HtmlEmail (multipart text+html alternative) instead of a plain MultiPartEmail; text-only callers are unchanged.
  • Adds the first unit test suite for the email module, covering the HtmlEmail vs MultiPartEmail branch selection.
  • Required by MEDH-156 Phase 8 (medeca dispatch template editing UI): automated dispatch templates need to send multipart text+html bodies.

Test plan

  • ./mill __.test (pre-push hook) — all 1692 tests passed locally
  • CI green on PR

🤖 Generated with Claude Code

## Summary - `EmailContent` gains a trailing-default `htmlMessage: Option[String] = None`. When set, `CommonsEmailNotificationService` builds an `HtmlEmail` (multipart text+html alternative) instead of a plain `MultiPartEmail`; text-only callers are unchanged. - Adds the first unit test suite for the email module, covering the `HtmlEmail` vs `MultiPartEmail` branch selection. - Required by MEDH-156 Phase 8 (medeca dispatch template editing UI): automated dispatch templates need to send multipart text+html bodies. ## Test plan - [x] `./mill __.test` (pre-push hook) — all 1692 tests passed locally - [ ] CI green on PR 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.