> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/integrations/office-365/activities/outlook/send-mail.md).

# Send Mail

Sends an email message to one or more recipients.

This activity sends an email message to one or more recipients using the Microsoft Graph [Create message](https://docs.microsoft.com/en-us/graph/api/user-post-messages?view=graph-rest-1.0\&tabs=http) and [Send mail](https://docs.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0\&tabs=http) APIs

### Input

* **Connection Id:** [`GraphServiceClient Variable`](/getting-started/rpa-studio/variables.md#graphserviceclient)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  Specifies the office 365 connection id.
* **Account:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies an email address with which to interact. This property can include any shared mailbox to which the current user has access rights. If the property field is left empty, the current user's account is used. This is an **optional** property.

### Email

* **Body :** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies the email's message body. If the **Is Body HTML** property is set to **true**, then the body needs to be specified in HTML format.
* **Subject:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies the subject of the email message.

### Options

* **From:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies the email address from which the email message is sent.
* **Subject:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies the subject of the email message.
* **Importance:**\
  Specifies the importance or priority of the mail message to be sent . The available options are: **Low**, **Normal**, **High**. By default the value is **Normal**.
* **Is Body HTML:**
  * `True` - The activity will specify that the message body is in Html format.
  * `False` - The activity will specify that the message body is in Text format.
* **Is Draft:**
  * `True` - The activity will save the message as draft and not sent.
  * `False` - The activity will send the message and it wont be saved.
* **Reply to:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies mail addresses to be used when replying.Each of the mail addresses should be separated by a **semicolon.**"

### Recipients

* **To:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies the main recipients of the email message.
* **Cc:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies the secondary recipients of the email message.
* **Bcc:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies the hidden recipients of the email message.

{% hint style="info" %}
When specifying multiple recipient mail addresses, each of the mail addresses should be separated by a **semicolon.** For example: "<user1@xyz.com>;<user2@xyz.com>"
{% endhint %}

### Attachments

* **Attachments:**[`FilePathEditorData Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies a collection of paths of files that are to be attached to the email message.
