---
title: Gmail (Legacy) modules
slug: gmail-legacy-modules
image: https://make-cxp-documentation.ams3.cdn.digitaloceanspaces.com/apps-center-icons/PREVIEW_DEFAULT.png
createdAt: 2025-03-12T11:48:13.675Z
---

After connecting to the Gmail app, you can use the following modules to build your scenarios.&#x20;

# Triggers

:::ExpandableHeading
## Watch Emails

Triggers when a new email is received to be processed according to specified criteria.

| **Field**                                      | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Connection**                                 | Create a connection to your Gmail account.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Folder**                                     | Select the email folder you want to watch.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Filter type**                                | Select **Simple filter** to filter emails by selecting criteria, or **Gmail filter** to filter emails by entering the query.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Criteria**                                   | Select the option to filter watched emails by.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Query**                                      | Use [the Gmail search syntax](https://support.google.com/mail/answer/7190). To search for messages containing an icon of a specific color, use the following search query:<br />- Yellow Star: `l:^ss_sy`<br />- Blue Star: `l:^ss_sb`<br />- Red Star: `l:^ss_sr`<br />- Orange Star: `l:^ss_so`<br />- Green Star: `l:^ss_sg`<br />- Purple Star: `l:^ss_sp`<br />- Red Bang: `l:^ss_cr`<br />- Yellow Bang: `l:^ss_cy`<br />- Blue Info: `l:^ss_cb`<br />- Orange Guillment: `l:^ss_co`<br />- Green Check: `l:^ss_cg`<br />- Purple Question: `l:^ss_cp` |
| **Sender email address**                       | Enter the email addresses that you want to filter emails by.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Subject**                                    | Enter the characters string in the email subject that you want to filter emails by.                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Search phrase**                              | Enter the characters string in the email subject or body that you want to filter emails by.                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Mark email message(s) as read when fetched** | Select whether you want to mark retrieved emails as read.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **Maximum number of results**                  | Set the maximum number of results that Make will work with during one cycle.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
:::

# Actions

:::ExpandableHeading
## Copy an Email

Copies an email or a draft into a selected folder.

| **Field**              | **Description**                                                                                                                                     |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**         | Create a connection to your Gmail account.                                                                                                          |
| **Folder**             | Select the email source folder that contains an email you want to copy.                                                                             |
| **Destination folder** | Select the email destination folder where you want to copy an email to.                                                                             |
| **Email ID (UID)**     | Enter the ID of the email you want to copy. To get the Email ID (UID), use the **Email > Get Emails** module. You will see the value in the output. |
:::

:::ExpandableHeading
## Create a Draft

Creates a new draft and adds it to a selected folder.

| **Field**                | **Description**                                                                                                                                                                                             |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**           | Create a connection to your Gmail account.                                                                                                                                                                  |
| **Folder**               | Select the folder you want to add a draft to.                                                                                                                                                               |
| **To**                   | Enter the recipient's email address.                                                                                                                                                                        |
| **Subject**              | Enter the email draft subject.                                                                                                                                                                              |
| **Content**              | Enter the email message body. You can use HTML tags.                                                                                                                                                        |
| **Attachments**          | File name  	  Enter the name of the file to be uploaded, including the file extension. For example, myFile.png.     Data  	  Enter the file data. Refer to our Help Center to learn how to work with files. |
| **Copy recipient**       | Enter the copy recipient's email address. (CC:)                                                                                                                                                             |
| **Blind copy recipient** | Enter the blind copy recipient's email address. (BCC:)                                                                                                                                                      |
:::

:::ExpandableHeading
## Delete an Email

Removes an email or a draft from a selected folder.

| **Field**            | **Description**                                                                                                                                             |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**       | Create a connection to your Gmail account.                                                                                                                  |
| **Gmail Message ID** | Enter the ID of the message you want to delete. To get the Gmail Message ID, use the **Gmail > Watch Emails** module. You will see the value in the output. |
| **Permanently**      | Select whether you want to move the email to the thrash folder or to permanently delete it.                                                                 |
:::

:::ExpandableHeading
## Mark an Email as Read

Marks an email or a draft in a selected directory as read by setting the "Read" flag.

| **Field**          | **Description**                                                                                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**     | Create a connection to your Gmail account.                                                                                                          |
| **Folder**         | Select the folder that contains the email you want to mark as Read.                                                                                 |
| **Email ID (UID)** | Enter the ID of the email you want to copy. To get the Email ID (UID), use the **Email > Get Emails** module. You will see the value in the output. |
:::

:::ExpandableHeading
## Mark an Email as Unread

Marks an email or a draft in a selected directory as read by setting the "Unread" flag.

| **Field**          | **Description**                                                                                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**     | Create a connection to your Gmail account.                                                                                                          |
| **Folder**         | Select the folder that contains the email you want to mark as Unread.                                                                               |
| **Email ID (UID)** | Enter the ID of the email you want to copy. To get the Email ID (UID), use the **Email > Get Emails** module. You will see the value in the output. |
:::

:::ExpandableHeading
## Modify Email Labels

Modifies labels on the specified email message.

| **Field**            | **Description**                                                                                                                                                          |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Connection**       | Create a connection to your Gmail account.                                                                                                                               |
| **Gmail Message ID** | Enter the ID of the message whose labels you want to modify. To get the Gmail Message ID, use the **Gmail > Watch Emails** module. You will see the value in the output. |
| **Labels to add**    | Select the labels you want to attach to the email.                                                                                                                       |
| **Labels to remove** | Select the labels you want to detach from the email.                                                                                                                     |
:::

:::ExpandableHeading
## Move an Email

Moves a chosen email to a selected folder.

| **Field**              | **Description**                                                                                                                                     |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**         | Create a connection to your Gmail account.                                                                                                          |
| **Folder**             | Select the email source folder that contains an email you want to move.                                                                             |
| **Destination folder** | Select the email destination folder where you want to move an email to.                                                                             |
| **Email ID (UID)**     | Enter the ID of the email you want to copy. To get the Email ID (UID), use the **Email > Get Emails** module. You will see the value in the output. |
:::

:::ExpandableHeading
## Send an Email

Sends a new email.

| **Field**                | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**           | Create a connection to your Gmail account.                                                                                                                                                                                                                                                                                                                                                                                          |
| **From**                 | Enter a custom sender email address.<br />There are two options for entering:<br />- a custom name in quotes before a custom sender email address: `"John Bush" test@email.com`<br />- an email address that you're already connected with: `test@mail.com`                                                                                                                                                                         |
| **To**                   | Enter the recipient's email address.                                                                                                                                                                                                                                                                                                                                                                                                |
| **Subject**              | Enter the email subject.                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Content**              | Enter the email message body. You can use HTML tags.                                                                                                                                                                                                                                                                                                                                                                                |
| **Attachments**          | File name  	  Enter the name of the file to be uploaded, including the file extension. For example, myFile.png.     Data  	  Enter the file data. Refer to our Help Center to learn how to work with files.     Content ID  	  Enter a Content ID to attach inline images. This allows you to create an ID for the attachment, which you can then use in HTML: \<img src="cid\:ii\_jrc3r9mw1"> where ii\_jrc3r9mw1 is a content ID. |
| **Copy recipient**       | Enter the copy recipient's email address. (CC:)                                                                                                                                                                                                                                                                                                                                                                                     |
| **Blind copy recipient** | Enter the blind copy recipient's email address. (BCC:)                                                                                                                                                                                                                                                                                                                                                                              |
:::

# Iterators

:::ExpandableHeading
## Iterate Attachments

Iterates through received attachments.

| **Field**         | **Description**                                                                    |
| ----------------- | ---------------------------------------------------------------------------------- |
| **Source module** | Select another Gmail module whose output contains attachments you want to iterate. |
:::

