Schedule Email
Send emails at a specific time without additional complexity.
While some emails need to be delivered as soon as possible, like password resets or magic links, others can be scheduled for a specific time.
Here are some examples of when you might want to schedule an email:
- Send welcome email 5 minutes after signup
- Trigger a reminder email 24 hours before an event
- Schedule a weekly digest email for the next day at 9am PST
Before, you had to use external services to handle the scheduling logic, but now you can use the new Resend API to schedule emails.
There are two ways to schedule an email:
1. Schedule using natural language
You can use the various Resend SDKs to schedule emails.
The date can be defined using natural language, such as "in 1 hour"
, "tomorrow at 9am"
, or "Friday at 3pm ET"
.
2. Schedule using date format
You can also use a date in ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z
).
View an scheduled email
Once you schedule an email, you can see the scheduled time in the Resend dashboard.
Reschedule an email
After scheduling an email, you might need to update the scheduled time.
You can do so with the following method:
You can also reschedule an email directly in the Resend dashboard.
Cancel a scheduled email
If you need to cancel a scheduled email, you can do so with the following code:
You can also cancel a scheduled email in the Resend dashboard.
Limitations
- Batch emails cannot be scheduled
- Emails sent via SMTP cannot be scheduled
- Emails with attachments cannot be scheduled
Was this page helpful?