Running CRON jobs to send weekly emails in Next.js with Inngest

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

View More Posts

Portfolio built using the open source project by

Initium Studio

Create your own Next.js Portfolio with Contentful CMS by forking this repo onGitHub

Blog

|

Projects

|

Health

|

Recipes

|

About

|

Contact

2024 Greeff Consulting Pty Ltd