My App
Emails

Getting Started

Here you can find all the information you need to get started with emails.

Tools

Architecture

  1. 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.
  2. After user finish onboarding, we add a new queue to emails.
  3. Cron job(Send Emails) read messages(each 5 minutes) from emails queue and call api endpoint(/api/emails) to send emails.
  4. The api endpoint(/api/emails) read messages from emails queue and send them to resend. This is a part of web app.
  5. Markup for emails is in packages/transactional/emails folder. transactional

On this page