# Integrations - IMAP and SMTP

SprintHub allows you to integrate email accounts via **IMAP**, making it possible to send and receive messages directly within the platform.

⚠️ **Important:** this article is intended for IMAP accounts from any provider, including **custom domains and Google accounts (Gmail/Workspace)**.\
Outlook accounts **Outlook** have a specific process — see the dedicated tutorial.

{% content-ref url="/pages/5b717c4a3c4a50b8ca93aa5e49f696d11bbbc2c4" %}
[Integrations - Outlook](/en/topics/integration/integrations-outlook.md)
{% endcontent-ref %}

{% content-ref url="/pages/613076f7d6d57092bc5c5a44ce33a48f4719c2e3" %}
[Integration - Google Ads and Gmail](/en/topics/integration/integration-google-ads-and-gmail.md)
{% endcontent-ref %}

***

#### 🔧 Step-by-step setup

1. **Access the email settings**
   * Click the **gear** icon in the top-right corner of SprintHub.
   * Go to **“System Settings”** > **“Integrations” >> “IMAP”**.
2. **Add a new account**
   * Click on **“Add email account”**.
   * Choose the option **“IMAP/SMTP”**.
3. **Fill in your account information**\
   Enter the details provided by your email provider:
   * **Email address:** your full address (example: [contact@yourdomain.com](mailto:contato@seudominio.com))
   * **User:** usually the same as the email
   * **Password:** account password or app password
   * **IMAP server:** `imap.yourdomain.com`
   * **IMAP port:** 993 (with SSL)
   * **SMTP server:** `smtp.yourdomain.com`
   * **SMTP port:** 465 (with SSL)
4. **Test the connection**
   * Click on **“Test connection”** to confirm that everything is working.
   * If the test is successful, click **“Save”**.

***

#### 💡 How to configure Gmail IMAP (Google Workspace)

If you use **Gmail or a Google Workspace account**, follow these specific steps:

1. **Enable IMAP in Gmail**
   * Go to [https://mail.google.com](https://mail.google.com/).
   * Click the **gear** ⚙️ > **“See all settings”**.
   * Go to the tab **“Forwarding and POP/IMAP”**.
   * In **“IMAP access”**, select **“Enable IMAP”**.
   * Click on **“Save Changes”**.

<figure><img src="/files/51c43d8a32b55eabd3f416680a32a88ded3a4e44" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/8a45cd71d1e329ce38df79af6c7d5c140a029a0a" alt=""><figcaption></figcaption></figure>

2. **Generate an app password**

* Go to <https://myaccount.google.com/security>.
* Enable **two-step verification** (if it is not already enabled).

{% hint style="danger" %}

### Important

**App passwords are only available when two-step verification is already enabled on the account.**\
If this option does not appear, first check whether two-factor authentication has been set up correctly. After enabling it, the option to generate app passwords will be displayed.
{% endhint %}

* Then, click on **“App passwords”**.
* Choose **“Mail”** as the app and **“Other (custom)”** (for example: “SprintHub”).
* Click on **Generate** and copy the 16-digit password displayed.

3. **Use this password in SprintHub**

* In the **Password**field, enter the **app password** (not the normal Google account password).
* Fill in the other fields as follows:
  * **IMAP server:** `imap.gmail.com`
  * **IMAP port:** 993 (SSL)
  * **SMTP server:** `smtp.gmail.com`
  * **SMTP port:** 465 (SSL)

4. **Test and save**

* Click on **“Test connection”**.
* If the test is successful, click **“Save”**.

{% embed url="<https://www.youtube.com/watch?v=7lG9XMvCGH4>" %}

***

#### ⚙️ Important tips

* Make sure the **username and password** are correct.
* Confirm that **IMAP access** is enabled with your email provider.
* Some providers (such as Google, Zoho, Umbler, Locaweb, etc.) require **app passwords** instead of the normal password.
* If the test fails, check the **ports and servers** being used.

***

#### 📩 Understanding IMAP and SMTP

* **IMAP** is the protocol responsible for **receiving and syncing emails** between the server and SprintHub.
* **SMTP** is the protocol used to **send emails**, including **bulk sends** and automated communications.

> 💡 In other words: the IMAP configuration is only for **receiving messages**, while **bulk sending** must be done using a **SMTP account** configured specifically for this purpose.

To configure your SMTP account for bulk sending, see the dedicated tutorial:

{% content-ref url="/pages/c209e8840de60a890a5587d19fb9645eae66162c" %}
[Email](/en/topics/settings/email.md)
{% endcontent-ref %}

***

#### ✅ Done!

Your IMAP account has been successfully configured in SprintHub \
Now you can **receive and view your emails** directly on the platform, keeping all communication centralized and organized.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/integration/integrations-imap-and-smtp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
