Skip to main content
outlook.sendEmail sends a new message and saves it to Sent Items. Use outlook.draftEmail when it needs review first.

Example

automations/send-outlook-report.automation.ts

Inputs

to is one recipient or a non-empty array. Recipients are email strings or { address, name? }. Provide subject and at least one of text, markdown, or html. cc, bcc, and replyTo use the same recipient format. importance is low, normal, or high. requestDeliveryReceipt and requestReadReceipt are optional booleans. attachments?: File[] attaches files directly, and second argument { account } selects the Microsoft binding. Outlook accepts one body representation. Automate.ax sends HTML when you provide HTML or Markdown, preferring supplied HTML over generated Markdown HTML. A text-only body remains plain text. Each direct attachment must be 3,000,000 bytes or smaller. The action fails before sending if any file exceeds that limit.

Output

Returns Signal<void>. Microsoft Graph doesn’t return the sent message from this endpoint. Create and then send a draft when later steps need its ID.