FlowmageDocs

Send email

BetaChanges data

Sends an email from a Microsoft 365 mailbox, with files attached.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
Send fromRequiredThe mailbox this mail is sent FROM — a user's sign-in address, or their object id. Your app needs Mail.Send for it.
ToRequiredtext
Cctext
Bcctext
Reply totext
SubjectRequiredtext
Body format"text" or "html"
BodyRequiredtext
AttachmentsFile 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 itemstrue/false
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
mailboxtext
totext
cctext
bcctext
replyTotext
subjecttext
bodyFormat"text" or "html", by default "text"
bodytext
attachmentsobject of text, by default {}
saveToSentItemstrue/false, by default true

Output

FieldType
acceptedboolean
recipientsarray
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
}