Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document sendAt limitations #1097

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/use-cases/time-to-send.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ const msg = {
html: '<p>Some email content</p>',
sendAt: 1500077141,
};

await sgMail.send(msg);
```

Keep in mind the following limitations:

1. Emails can only be scheduled, at most, 72 hours in advance.
2. If successful, the call to `sgMail.send()` returns a 202 status code with an empty response body. Currently, cancelling a scheduled email [requires a change of password or contacting our support team](https://sendgrid.com/docs/for-developers/sending-email/stopping-an-in-progress-send/#stopping-transactional-email).