- 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
Emails can be scheduled up to 30 days in advance.
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 a 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:Cancel a scheduled email
If you need to cancel a scheduled email, you can do so with the following code:Scheduled email failures
Scheduled emails may fail to send for several reasons. When this happens, you’ll see a failure notification in the email details screen with specific information about why the email couldn’t be sent. Common failure reasons include:- API key is no longer active - The API key used to schedule the email has been deleted, expired, or suspended. The email cannot be sent.
- Account under review - Your account has been flagged for review and sending has been temporarily suspended. Contact support@resend.com if you believe this is an error.
Limitations
- Emails sent via SMTP cannot be scheduled
Try it yourself
Next.js (TypeScript)
See the full source code.
Next.js (JavaScript)
See the full source code.
PHP
See the full source code.
Laravel
See the full source code.
Python
See the full source code.
Ruby
See the full source code.