Module: cis-emailer¶
cis-emailer is the dedicated asynchronous notification and document generation library module for the CIS platform.
[!NOTE]
cis-emaileris an internal library submodule (project(":cis-emailer")) embedded directly intocis-api. It does not expose standalone REST endpoints or listen on an HTTP port; its services are invoked directly by domain services withincis-api.
Capabilities¶
- Email Template Rendering:
- Compiles dynamic HTML emails using Thymeleaf templates.
- Automatically injects environment banners (e.g.,
[DEV],[UAT]) based on active Spring profiles to avoid confusing end users during testing. - PDF Attachment Generation:
- Converts HTML receipts, certificates, and cadastral acknowledgement notices into PDF attachments using Flying Saucer (XHTML renderer).
- Transport Resilience:
- Robust error handling wrapping
JavaMailSender. - In local development, dispatches emails to Mailpit (
localhost:1025) for zero-risk inspection.