> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Send email

> Send a plain-text or HTML email through Outlook.

`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

```ts automations/send-outlook-report.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { sendEmail } from "automate.ax/outlook"

export default automation("Send Outlook report", () => {
  onHttpRequest({ scope: "automation" })
  sendEmail({
    to: { address: "reader@example.com", name: "Report reader" },
    subject: "Weekly report",
    bodyType: "html",
    body: "<h1>Report ready</h1>",
    requestReadReceipt: true,
  })
})
```

## 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.
