The SEND_MAIL action sends email messages through Microsoft Email services using Microsoft Graph. The action supports plain-text and HTML message content, file attachments, templates, carbon-copy recipients, blind carbon-copy recipients, and reply-to addresses.
Use this action when workflows need to send notifications, approvals, alerts, reports, generated documents, or other automated email communications.
During the operation, the connector authenticates with Microsoft Graph. The email content is generated from the supplied text, HTML, or template, metadata values are applied to any template placeholders, and attachments are added to the message if provided. Then the email is sent to the specified recipients.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| attachments | Array<content> | Optional | Files to attach to the email. If multiple files are provided, all files are attached. Microsoft supports approximately 35 MB of total attachment content per email. Files smaller than 3 MB are attached directly, while files 3 MB or larger use an upload-session process. |
| bcc | String | Optional | Blind carbon copy (BCC) recipients. Multiple recipients are supported. |
| cc | String | Optional | Carbon copy (CC) recipients. Multiple recipients are supported. |
| from | String | Required | Sender email address. When not provided, the connector uses the configured default address. |
| html | String | Optional | HTML-formatted message body. |
| metadata | JSON | Optional | Metadata values used by templates to resolve variable placeholders. |
| reply-to | String | Optional | Reply-to email recipients. Multiple recipients are supported. |
| subject | String | Optional | Subject line of the email. |
| template | Array<content>, Content | Optional | File containing the template used to generate email content. If multiple files are supplied, only the first template is used. |
| text | String | Optional | Plain-text message body. Can be used together with HTML as a fallback for email clients that do not support HTML content. |
| to | String | Optional | Recipient email addresses. Multiple recipients are supported. |
This action does not return any output parameters.