Send your users a weekly summary email every Monday via a scheduled function and Sendgrid
npx inngest-cli init --template github.com/inngest/inngest#examples/weekly-summary-email
This solves writing scheduled functions without crons or queues in seconds with the following benefits:
Use this quickstart with a single CLI command to get started! The CLI will then guide you through running, testing, and deploying to Inngest Cloud.
Via the CLI:
inngest init --template github.com/inngest/inngest#examples/weekly-summary-email
Via NPX:
npx inngest-cli init --template github.com/inngest/inngest#examples/weekly-summary-email
With the function cloned, run inngest run
to test the function locally.
This function has a single step within steps/run
. This step loads all summaries
to be sent, then sends an event to Inngest to record summary information and sends
the email.