Resend
Resend tasks
Tasks are executed after the job is triggered and are the main building blocks of a job. You can string together as many tasks as you want.
All tasks
sendEmail
Send an email to a recipient with a text payload. Official Resend Docs
example.ts
Tasks
Function Name | Description |
---|---|
emails.send | Send an email |
emails.create | Create an email |
emails.get | Get an email |
batch.send | Send a batch of emails at once |
batch.create | Create a batch of emails at once |
audiences.create | Create an audience |
audiences.get | Get an audience |
audiences.remove | Remove an audience |
audiences.list | List audiences |
contacts.create | Create a contact |
contacts.get | Get a contact |
contacts.update | Update a contact |
contacts.remove | Remove a contact |
contacts.list | List contacts |
Example
In this example we use Zod, a TypeScript-first schema declaration and validation library.
Was this page helpful?