# Email Sent

> `UiPath.GSuite.Activities.Gmail.Triggers.EmailSent`

`UiPath.GSuite.Activities.Gmail.Triggers.EmailSent`

## Description

Executes an automation workflow when an email is sent.

### Scopes

This activity requires the following scopes:

* https://mail.google.com/

OR

* https://www.googleapis.com/auth/gmail.modify

OR

* https://www.googleapis.com/auth/gmail.readonly

OR

* https://www.googleapis.com/auth/gmail.metadata

## Project compatibility

Windows | Cross-platform

## Configuration

* **Gmail connection** - The connection for the Google Workspace account to use in the activity.
* **Additional filters** - Select this field to open the **Filter builder** and add additional filters. Supports filtering on the following fields: BCC, Body, CC, Subject, From, To, Labels.

### Additional options

**Options**

* **With attachments only** - Specifies whether to consider only emails with attachments. This property supports Boolean values. By default, **Off** is selected.
* **Include attachments** - Specifies whether the email message is passed to the next activities with the attachments included. This property supports Boolean values. By default, **True** is selected.

**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 [Forward Email](https://docs.uipath.com/activities/other/latest/productivity/google-workspace-email-forward-email-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-294031-6ea300fb.webp)

For more details, also check the following resources::

* [Gmail activities](https://docs.uipath.com/activities/other/latest/productivity/gmail-activities)
* [Forward Email](https://docs.uipath.com/activities/other/latest/productivity/google-workspace-email-forward-email-connections)
* [Archive Email](https://docs.uipath.com/activities/other/latest/productivity/google-workspace-email-archive-email-connections)
* [Download Email Attachments](https://docs.uipath.com/activities/other/latest/productivity/google-workspace-email-download-attachments-connections)
