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

# Send Mail

Send outlook message.

* **Least privileged** Microsoft Graph permission to access the action via **application**: `Mail.Send`.

```
Note: Using the delegated (OAuth) connection type will only allow to insert the connected user's ID.
```

<Note>
  External Documentation

  To learn more, visit the [Microsoft Outlook documentation](https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0\&tabs=http).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                      | Description                                                                                                                                                                                                                                                                                                                                                    |
  | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Attachments                    | A comma-separated list of file identifiers to add as attachments.<br />A file identifier represents a file created or referenced earlier in the workflow (for example, from a file action or another step that produces a file).<br />See [Using with Files in Workflows](https://docs.blinkops.com/docs/workflows/building-workflows/files) for more details. |
  | CC Recipients                  | A comma-separated list of email addresses of the CC recipients.                                                                                                                                                                                                                                                                                                |
  | Content Type                   | The type of the content to send. Can be either regular text or html text.<br /><br />By default it will be sent as Regular Text.                                                                                                                                                                                                                               |
  | HTML Message Content           | The message's content body.                                                                                                                                                                                                                                                                                                                                    |
  | Recipients                     | A comma-separated list of email addresses of the recipients.                                                                                                                                                                                                                                                                                                   |
  | Regular Text Message Content   | The message's content body.                                                                                                                                                                                                                                                                                                                                    |
  | Subject                        | The subject of the message.                                                                                                                                                                                                                                                                                                                                    |
  | User ID or User Principal Name | The ID or userPrincipalName of the user.                                                                                                                                                                                                                                                                                                                       |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Custom Message Headers | A JSON array of custom email headers. Can be used to trigger [transport rules](https://learn.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/mail-flow-rules) or an [auto-labeling policies](https://learn.microsoft.com/en-us/purview/apply-sensitivity-label-automatically).<br /><br />**Note**: All header names must start with `x-` and include only lowercase letters, numbers, and hyphens.<br /><br />Format:<br /><pre><code>\[<br />  \{<br />    "name":"x-custom-header",<br />    "value":"example"<br />  }<br />]</code></pre> |
  | Save To Sent Items     | Select to save the new mail in `Sent Items` folder.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
</div>

## Workflow Library Example

[Send Mail with Microsoft Outlook and Send Results Via Email](https://library.blinkops.com/workflows/send-mail-with-microsoft-outlook-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/send-mail-with-microsoft-outlook-and-send-results-via-email/canvas" />
</div>
