Skip to content
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Schedule an email

Schedule email from TypeScript and Node.js with sendAt: which providers support scheduled sending and attachments, and how far ahead each accepts.

To schedule an email with Email SDK, put sendAt on the message and send it through an adapter whose provider supports scheduled sending: Resend, SendGrid, Mailgun, MailerSend, Brevo, Mailchimp Transactional, SparkPost, Lettr or SendHeron. The provider holds the email until that time. Every other adapter, including Postmark, Amazon SES and SMTP, rejects a message with sendAt before any request is made.

sendAt takes a Date or an RFC 3339 timestamp with Z or an explicit offset, such as "2026-11-09T09:00:00-05:00". Email SDK does not keep a timer, run a cron job, or stay alive in the background.

Which providers support scheduled sending

Adapter Sent to the provider as How far ahead Attachments on a scheduled send
Resend scheduled_at Up to 30 days Yes
SendGrid send_at Up to 72 hours Yes
Mailgun o:deliverytime Up to 3 days on most plans, 7 with extended storage Yes
MailerSend send_at Up to 72 hours Yes
Brevo scheduledAt Up to 72 hours Yes
Mailchimp Transactional send_at Not stated; scheduling needs a positive account balance Yes
SparkPost options.start_time Up to 3 days Yes
Lettr POST /emails/scheduled At least 5 minutes and at most 3 days ahead Yes
SendHeron sendAt See the adapter page No: the adapter rejects attachments with sendAt

The limits are the providers’ rules, summarized from each adapter page. Email SDK doesn’t check the delay itself, and it passes past times through: the provider either sends right away or rejects the request. Check the adapter page before relying on a long delay.

Scheduled sends and fallback

Email SDK checks the whole route before sending. If a fallback adapter can’t schedule, the send fails with EmailValidationError instead of handing the message to an adapter that would deliver it immediately. Turn fallback off for scheduled messages:

A route of two scheduling adapters, such as Resend with SendGrid as the backup, passes validation with fallback on. SendGrid takes over by default when Resend definitely rejected the request, such as a 401 or 422. After a timeout, a 429 or a 5xx the Resend outcome is unknown, so SendGrid takes over only with onUnknownDelivery: "continue", which risks two scheduled copies (see Retries and provider fallback). Keep the delay within the shorter of the two limits.

When to use your own scheduler

Keep the schedule in your database and let a queue, workflow, or cron worker call email.send when you need:

  • cancellation or rescheduling through one API, whatever the provider
  • delays longer than the provider allows
  • a record of pending and completed work
  • retries that survive a server restart
  • the freedom to switch providers before the send happens

A cron job is fine when it polls a durable outbox table. Do not rely on an in-memory timer because a deploy or crash will lose it.

Questions

Can Postmark or Amazon SES schedule email?

Not through Email SDK. Neither adapter supports sendAt, so the send throws EmailValidationError before any request. Store the send time yourself and call email.send when it comes due.

Which email APIs support both scheduled sending and attachments?

Resend, SendGrid, Mailgun, MailerSend, Brevo, Mailchimp Transactional, SparkPost and Lettr accept both in one message through their Email SDK adapters. SendHeron supports each one, but not together. The field support matrix lists every field per adapter.

How do I cancel a scheduled email?

Email SDK has no cancel call, so cancel through the provider’s own API where it offers one. Resend can reschedule or cancel a scheduled email by its ID, which the adapter returns as result.id (see the Resend API guide). SendGrid can only cancel a send that carried a batch ID, and the sendgrid adapter doesn’t set one, so call SendGrid directly for sends you may cancel (SendGrid API guide). If you cancel often, keep the schedule in your own database instead.

Production send pipeline

Store delivery state and retries outside the core SDK.

Delivery capabilities

Compare scheduling, idempotency, and personalized delivery support.

Last updated on