# Email Notifications Should Be Product Workflows, Not Side Effects
Transactional email often begins as a few send-email calls and becomes difficult to reason about as the product grows.
In an HR platform, notifications can be connected to account activation, leave requests, approvals, rejections and other important events. Each message has a recipient, trigger and business meaning.
Humzio also needs to support organization-specific email delivery configuration, which makes the boundary between product logic and delivery infrastructure even more important.
The lesson
Define notification events explicitly. Keep business decisions separate from the mechanism used to deliver the message. Make delivery configurable where needed and test who receives what for each workflow.
Email becomes easier to maintain when it is treated as a product capability rather than an incidental side effect of an API request.