> For the complete documentation index, see [llms.txt](https://docs.caspianaio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.caspianaio.com/getting-started/imap-setup.md).

# IMAP Setup

We support <mark style="color:yellow;">GMAIL</mark> and <mark style="color:yellow;">Outlook</mark> support out of the box and support <mark style="color:yellow;">custom IMAP hosts</mark>!&#x20;

### Setting up Outlook/Custom

* For Outlook, all you have to do is entering your email and password into their respective fields.&#x20;
* For custom domains, we need the IMAP host and port besides the email and password.&#x20;

### Setting up Gmail

Follow these steps to allow the bot to be able to grab OTP codes from your email, make sure when enabling these settings it is the right Gmail account.

1. Go to [Gmail Settings](https://mail.google.com/mail/u/6/#settings/fwdandpop) and enable IMAP.&#x20;
2. Enable [2-Step Verification](https://myaccount.google.com/u/1/security) if this isn't enabled yet.&#x20;
3. Go to "[Create App password](https://myaccount.google.com/apppasswords)".
4. Enter a name and click "Generate".
5. <mark style="color:yellow;">Copy</mark> the generated password into the <mark style="color:yellow;">password input</mark> on the <mark style="color:yellow;">IMAP form</mark>.
6. <mark style="color:yellow;">Enter</mark> your Gmail email into the <mark style="color:yellow;">email input</mark> on the <mark style="color:yellow;">IMAP form</mark>.&#x20;
7. <mark style="color:yellow;">Press</mark> save and <mark style="color:yellow;">click</mark> on the start button and check if it successfully connects!&#x20;

<figure><img src="https://2041271291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDKaYK7jEZDaEq5yx56sw%2Fuploads%2FYBWZnVhU9qvcF46ItuqI%2FUntitled.png?alt=media&amp;token=1dedca54-38e6-478d-8e95-2f12e2ae9c9a" alt=""><figcaption></figcaption></figure>
