Skip to main content
sendEmail sends a new message and saves it to Sent Items. Use draftEmail when a person or later step must review the message before sending.

Example

automations/send-outlook-report.automation.ts

Inputs

to is one recipient or a non-empty array; recipients are email strings or { address, name? }. subject and body are required. bodyType defaults to "text"; cc, bcc, and replyTo accept the same recipient shape. importance is low, normal, or high. requestDeliveryReceipt and requestReadReceipt are optional booleans. attachments?: File[] attaches files directly, and account selects the Microsoft binding. 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 does not return the sent message from this endpoint. Create and then send a draft when later steps need its ID.