Scheduled email delivery
Schedule a delivery of an email by providing the scheduledAt
parameter set to a valid ISO 8601 date in the future.
Example
const configureSidemail = require("sidemail");
const sidemail = configureSidemail({ apiKey: "replace-with-your-api-key" });
const response = await sidemail.sendEmail({
toAddress: "[email protected]",
fromAddress: "[email protected]",
fromName: "Your app",
templateName: "Welcome",
// Deliver the email in 60 minutes from now
scheduledAt: "${new Date(new Date().getTime() + 60 * 60000).toISOString()}",
});
Unschedule email
Unschedule email delivery by deleting the email via API (see the delete email API endpoint).
Or unschedule email deliver from the project's history page in your dashboard.