Example tasks
Send emails using React Email
Learn how to send beautiful emails using React Email and Trigger.dev.
Overview
This example demonstrates how to use Trigger.dev to send emails using React Email.
Task code
This email is built using React components. To use React components in your task, it must be a .tsx file.
trigger/sendReactEmail.tsx
How the email should look
This example email should look like this:
This is just a simple implementation, you can customize the email to be as complex as you want. Check out the React email templates for more inspiration.
Testing your task
To test this task in the dashboard, you can use the following payload:
Deploying your task
Deploy the task to production using the Trigger.dev CLI deploy
command.