capabilities.work

Draft and Send Mail

A 3-step recipe with Microsoft Office 365. We can help you get access.

Recipe · 3 steps

Draft and Send Mail

Draft a message, verify it, then send mail to a recipient.

  1. Create a draft message in the signed-in user's Drafts folder with the supplied subject, body, and recipient.
  2. Read the draft back by id to confirm its content before sending.
  3. Send an equivalent message to the recipient and save a copy to Sent Items. Returns 202 Accepted as delivery is queued asynchronously.
What you'll need to have ready
  • subject: The subject line of the message.
  • bodyContent: The plain-text body content of the message.
  • toAddress: The email address of the primary recipient.
  • toName: The display name of the primary recipient.
For your developer

Arazzo workflow microsoft-office-365:draft-and-send-mail, 3 operations: createMessage → getMessage → sendMail. Specs on APIs.io.