Skip to main content
Status: Accepted Decision date: 2025-08-01 Implementation: Confirmed in the repository at commit 27045ec.

Context and decision drivers

After generating a PDF, the service must email it to the recipients supplied in the report request. The expected volume is small. The team wanted a familiar library without adopting a paid email API solely for this workflow.

Options considered

Decision and rationale

Use Nodemailer to send the generated PDF as an attachment through the configured email service. Nodemailer itself is free, while the configured service may have its own limits or charges.

Consequences

  • Email delivery remains part of the application workflow.
  • The service depends on the configured provider’s availability, credentials, and sending limits.
  • A successful sendMail call does not establish that a recipient received or read the email.
  • Credential handling, retry policy, and delivery monitoring need separate operational controls.

Implementation evidence

The email service creates the Nodemailer transport and attaches the PDF. The email activity retrieves that PDF from Blob Storage.

Revisit when

Reconsider the delivery approach if volume, deliverability, audit, retry, or provider limits require a dedicated email service.