# Email Sent

> `UiPath.MicrosoftOffice365.Activities.Mail.Triggers.EmailSent`

`UiPath.MicrosoftOffice365.Activities.Mail.Triggers.EmailSent`

## Description

Initiates an automation workflow when an email is sent in Outlook.

### Scopes

This activity requires the following scopes:

* Mail.Read AND User.Read

OR

* Mail.ReadWrite AND User.Read

OR

* Mail.Read.Shared AND User.Read

OR

* Mail.ReadWrite.Shared AND User.Read

OR

* Mail.Read AND User.ReadWrite

OR

* Mail.ReadWrite AND User.ReadWrite

OR

* Mail.Read.Shared AND User.ReadWrite

OR

* Mail.ReadWrite.Shared AND User.ReadWrite

## Project compatibility

Windows | Cross-platform

## Configuration

* **Microsoft Outlook 365 connection** - The connection for the Microsoft 365 account to use in the activity.
* **Use shared mailbox** - Set the toggle to On if you want to use a shared mailbox. Default value is Off.
  + **Shared mailbox** - The email address of a user or shared mailbox. This field supports String type input.
* **Filter** - Additional criteria to filter the email that is sent. Supports filtering on the following fields: BCC, Body, CC, Category, From, Importance, Subject, To, Type.

### Additional options

**Options**

* **With attachments only** - Boolean value. Set the toggle to **On** to only consider emails that have attachments.
* **Include attachments** - Boolean value. Set to `True` if the email passed to other activities should contain attachments.

**Output**

* **Email** - The sent email. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities, such as [Download Email Attachments](https://docs.uipath.com/activities/other/latest/productivity/office365-email-download-email-attachments-connections).
* **Job Data** - Contains job info, such as Process name, Process version, Workflow name, Robot name, and mode of execution.

## Example

![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-294120-698b930b.webp)

For more details, also check the following resources::

* [Outlook activities](https://docs.uipath.com/activities/other/latest/productivity/outlook-activities)
* [Download Email](https://docs.uipath.com/activities/other/latest/productivity/office365-email-download-email-connections)
* [Forward Email](https://docs.uipath.com/activities/other/latest/productivity/office365-email-forward-email-connections)
* [Move Email](https://docs.uipath.com/activities/other/latest/productivity/office365-email-move-email-connections)
