Scheduled email delivery

Schedule a delivery of an email by providing the scheduledAt parameter set to a valid ISO 8601 date in the future. Scheduled emails cannot be unscheduled at the moment.

Example

const configureSidemail = require("sidemail");
const sidemail = configureSidemail({ apiKey: "replace-with-your-api-key" });
  
const response = await sidemail.sendEmail({
	toAddress: "user@example.com",
	fromAddress: "you@example.com",
	fromName: "Your app",
	templateName: "Welcome",
	// Deliver the email in 60 minutes from now
	scheduledAt: "2020-07-14T11:29:18.145Z",
});