# Enabling Gmail for Email Activities

> To configure your gmail account for IMAP/POP3 protocols in Gmail and be able to use your Gmail account in creating automations, you must follow these steps:

To configure your gmail account for IMAP/POP3 protocols in Gmail and be able to use your Gmail account in creating automations, you must follow these steps:

1. Enable POP3/IMAP from Gmail.
2. Generate and use a Google app password (optional).

## Enabling POP3/IMAP from Gmail

Go to https://mail.google.com and log in with the email you want to use in your automation.

1. Click **Settings &gt; Settings**. The **Settings** page is opened.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/standalone-docs-image-169029-1b67ecc2.webp)

2. In the **Forwarding and POP/IMAP** tab, select the **Enable POP** and **Enable IMAP** check boxes.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/standalone-docs-image-169129-4432cd36.webp)

## Generate and Use an App Password from Google

:::note
This only works if you have 2-step verification enabled for your email account.
:::

1. Go to https://security.google.com/settings/security/apppasswords.
2. From the **Select app** drop-down select **Other (Custom Name)**. A text box **(Custom Name)** is displayed.
3. Fill in the text box with a custom app name, such as UiPath, and click **Generate**. A 16-character password is generated that can be used in UiPath Studio instead of the original password.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/standalone-docs-image-171224-aa1a3375.webp)

   :::note
   The password is only displayed once. This method makes your automation more secure, and keeps your Gmail account protected.
   :::

For more information on how to work with POP3 and IMAP email messages in Studio, see the [Get POP3 Mail Message](https://docs.uipath.com/activities/docs/get-pop-3-mail-messages) and [Get IMAP Mail Messages](https://docs.uipath.com/activities/docs/get-imap-mail-messages) activities.

For more info on Gmail configuration go to [this link](https://support.google.com/mail/answer/7126229?hl=en).
