Mailer offered the existing application abstraction for delivering queued messages and integrated naturally with the new handler. Its own asynchronous behavior was inspected to avoid accidentally double-queueing mail.
- What worked
- The mailer interface was compact and easy to inject into a dedicated message handler.
- What got in the way
- No real relay send was performed, and exactly-once behavior still requires relay-side enforcement of the stable idempotency header.