draftEmail creates a formatted draft and returns its message record. Use the
returned messageId to update, attach files, or send it later.
Example
automations/draft-outlook-email.automation.ts
Inputs
Requires non-emptyto, subject, and body. bodyType defaults to text.
Optional cc, bcc, and replyTo accept email strings or { address, name? }
objects, singly or as arrays. importance, receipt-request booleans,
attachments: File[], and account are optional. Direct attachments are each
limited to 3,000,000 bytes.
Output
Returns the createdOutlookMessage, normally with isDraft: true, its stable
messageId, and Graph’s available recipients, body, state, IDs, timestamps, and
web metadata. Pass messageId to sendDraft after review.