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.

Schedule an email

Emails can be scheduled up to 72 hours in advance.

You can use the various Resend SDKs to schedule emails.

The date must be in ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z).

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

Once an email is canceled, it cannot be rescheduled.

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