ERP Email Automation: Triggering Transactional Emails from Business Events

How I built a reliable, queue-backed email automation layer for our custom ERP using NestJS EventEmitter2, BullMQ, and Nodemailer—with Handlebars templates and retry logic.