Send email
Send an email from a Microsoft 365 mailbox with optional CC, BCC and attachments (up to 3 MB each).
Command in the Microsoft 365 toolkit · id ooa.microsoft365/send_mail · 15 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| To | Any | Yes | Recipient address(es). | |
| Subject | String | Yes | Subject. | |
| Body | String | No | Message body. | |
| Body is HTML | Boolean | No | false | Body is HTML. |
| Cc | Any | No | CC address(es). | |
| Bcc | Any | No | BCC address(es). | |
| Attachments | List | No | File paths to attach. | |
| From | String | No | Send as this address, e.g. a shared mailbox; the account needs Send As rights. The mailbox itself when empty. | |
| Importance | String | No | normal | Importance shown to the recipients. |
| Reply to | Any | No | Address(es) that replies go to, when not the sender. | |
| Save to sent items | Boolean | No | true | Keep a copy in Sent Items. |
| Read receipt | Boolean | No | false | Ask for a receipt when the email is read. |
| Mailbox | String | No | me | Mailbox: me, or a user's email address (needs application permission). |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |