Push is for devices. Email and SMS cover the times a message has to reach someone outside the app: verification codes, password resets, account alerts, receipts. This post covers how email templates work and how the OTP flow uses both channels.
Email through Brevo
Transactional email goes out through the Brevo API, and the design keeps content and logic apart.
The content and layout live in Brevo. Marketing and product teams design the templates there, with placeholders for dynamic values like a first name or a code. The service itself keeps a mapping from an internal email type to a Brevo template ID, stored in its own database. Email types are a fixed list: forgot password, verify email, welcome, password changed, KYC updates, transaction events and monthly limit alerts, among others.
To send, a listener names an email type and supplies the recipient and the placeholder values. The service looks up the template ID, builds the request and calls Brevo.
Managing
Discussion
Your thoughts matter!
Your input is valuable—be the first to share it!