Send email
BetaChanges data
Sends an email from a Microsoft 365 mailbox, with files attached.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| Send fromRequired | The mailbox this mail is sent FROM — a user's sign-in address, or their object id. Your app needs Mail.Send for it. |
| ToRequired | text |
| Cc | text |
| Bcc | text |
| Reply to | text |
| SubjectRequired | text |
| Body format | "text" or "html" |
| BodyRequired | text |
| Attachments | File name → base64 contents — use {{ file("report.pdf").base64 }} as the value. Up to 3 MB of attachments in total; larger files need an upload session, which this node does not do. |
| Save in Sent items | true/false |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
mailbox | text |
to | text |
cc | text |
bcc | text |
replyTo | text |
subject | text |
bodyFormat | "text" or "html", by default "text" |
body | text |
attachments | object of text, by default {} |
saveToSentItems | true/false, by default true |
Output
| Field | Type |
|---|---|
accepted | boolean |
recipients | array |
requestIdGraph request-id (from the response header) | string |
Sample output, and the expression for each field
- acceptedtrue
- recipients[]
- requestId""
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"attachments": {},
"bcc": "",
"body": "<body>",
"bodyFormat": "text",
"cc": "",
"connection": "<connection id>",
"mailbox": "<send from>",
"replyTo": "",
"saveToSentItems": true,
"subject": "<subject>",
"to": "<to>"
},
"label": "Send email",
"type": "graph.sendMail",
"version": 1
}