During this episode, we setup a CRON job to schedule a weekly digest email for projects and another job to perform the generation of the email html and actual sending.
We will talk through setting up Inngest which is a platform we can use in serverless environments for scheduled tasks and background jobs. We use Sendgrid to send the email.
We use a fan-out technique so that each email runs as its own task to prevent one a failure in one task causing the rest to also fail.
This project was set up using the T3 stack and Next.js