Emails
Getting Started
Here you can find all the information you need to get started with emails.
Tools
Architecture
- After user sign up, we handle it by webhook(
on-user-insert-or-update-for-resend) which call supabase edge function(v1-email-create-resend) and add user to resend audience. - After user finish onboarding, we add a new queue to
emails. - Cron job(
Send Emails) read messages(each 5 minutes) fromemailsqueue and call api endpoint(/api/emails) to send emails. - The api endpoint(
/api/emails) read messages fromemailsqueue and send them to resend. This is a part ofwebapp. - Markup for emails is in
packages/transactional/emailsfolder. transactional