# Connect Custom Email

{% hint style="info" %}
You need to —

* Be an Admin on MyAlice.
* Have email login credentials
* Enable IMAP, SMTP on your mail server.&#x20;
* Create an App password if your Two Factor Authentication is enabled.
  {% endhint %}

{% hint style="info" %}
Our system will fetch the last 3 days emails (Maximum 50 emails) and keep those mail in "All Closed" queue in our inbox.&#x20;
{% endhint %}

## Use Cases of MyAlice for Custom Email

Integrating your email with MyAlice will allow you to:

* Respond to emails from MyAlice inbox.
* Create orders based on emails(Launching soon)
* Connect Gmail, Outlook, Yahoo Mail, Zoho Mail, Icloud Mail and your custom mail server

## Connect Your Email

### Step 1: Link your Account

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/3mQWwkqGszN0oKvbQS8S/image.png" alt=""><figcaption><p>Available Integrations</p></figcaption></figure>

1. Go to **Integration** from the left navigation bar.
2. Under **Available Integrations**, select **Email**.&#x20;
3. A connection window will appear in the center.&#x20;

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/IwvV7Rhk7NaMjfLcXPEi/image.png" alt=""><figcaption><p>Email channel integration</p></figcaption></figure>

4. Click on **Set up a Custom Email**. Email Setup window will open. Here, give your IMAP details.&#x20;

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/P0nKnLiC5rWK81uXoTMK/image.png" alt=""><figcaption><p>IMAP Details Window</p></figcaption></figure>

5. Provide your email details shown as below. IMAP is to send emails. To know more about IMAP Host, Port and security details for popular mail servers check below:

{% tabs %}
{% tab title="Gmail" %}
IMAP Host : imap.gmail.com\
IMAP Port : 993\
IMAP Security: SSL\
IMAP Email: Email Address (Which you are trying to connect) \
IMAP Password: Password for provided email (You might need an [app password](https://support.google.com/mail/answer/185833?hl=en), if two factor authentication is enabled)

Enable IMAP from Gmail Settings:\
![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/6e7i4hl6GnN8lhdDknQI/image.png)

{% endtab %}

{% tab title="Outlook" %}
IMAP Host : outlook.office365.com\
IMAP Port : 993\
IMAP Security: TLS\
IMAP Email: Email Address (Which you are trying to connect) \
IMAP Password: Password for provided email

\
For Outlook Mail, you need to  enable IMAP from mail settings shown as below:

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/v3UxtDX4P5zdHpjGvsOq/Screenshot%202023-10-20%20at%207.44.36%20PM.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Yahoo Mail" %}
IMAP Host : imap.mail.yahoo.com\
IMAP Port : 993\
IMAP Security: SSL\
IMAP Email: Email Address (Which you are trying to connect) \
IMAP Password: Yahoo Mail app password for provided mail(it’s *not* the password you use to log in to Yahoo Mail). See below to Generate App Password.&#x20;

**How to Generate App Password:**&#x20;

To use the Yahoo Mail SMTP server, you first need to create a dedicated app password. Earlier, you could use your Yahoo Mail password, but Yahoo updated this requirement to improve security. Now, you need to generate a unique app password.

Thankfully, generating a Yahoo Mail app password is pretty straightforward. To get started, go to your account settings area and then click on the **Account Security** tab.

You can access your account settings area by clicking on your username/icon in the top-right corner. Or, you can [click this link to go straight to the account security area](https://login.yahoo.com/myaccount/security/) (as long as you’re logged in to Yahoo Mail already).

Then, click the **Generate app password** link under the **Other ways to sign in** section.

&#x20;                                      ![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/LmALevE3zkwOIbWFYCK3/image.png)

You should now see a popup. Go ahead and click the blue **Get started** button in the popup to advance.

Enter your app name, which is just an internal name to help you remember it — for example, “WordPress” or “Thunderbird.” Label this correctly, as it’ll help you remember the service the password connects. Next, click the **Generate password** button.

&#x20;                                     ![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/k6QWddmv30MB86KC9bcT/image.png)

You should then see the app password — keep this handy because you’ll need it when you configure the Yahoo Mail SMTP settings in whatever app you’re using.

&#x20;                                      ![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/a3JN63GjHzLOc2JYccmJ/image.png)
{% endtab %}

{% tab title="Zoho Mail" %}
IMAP Host : imap.zoho.com\
IMAP Port : 993\
IMAP Security: SSL\
IMAP Email: Email Address (Which you are trying to connect) \
IMAP Password: Password for provided email (You might require an [Application-specific Password](https://www.zoho.com/mail/help/adminconsole/two-factor-authentication.html#alink5) if Two-factor Authentication is enabled).\
\
For Zoho Mail, you need to  enable IMAP from Zoho mail settings shown as below: \
![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/YfS3eZ6ZrvLas3TIG0Bf/image.png)
{% endtab %}

{% tab title="iCloud Mail" %}
IMAP Host : imap.mail.me.com\
IMAP Port : 993\
IMAP Security: SSL (*If you see an error message when using SSL, try using TLS instead)*\
IIMAP Email: Email Address (Which you are trying to connect) \
IMAP Password: [Generate an app-specific password](https://support.apple.com/kb/HT204397) for provided email
{% endtab %}
{% endtabs %}

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/bFBxeIjweQkCB08NBhW6/image.png" alt=""><figcaption></figcaption></figure>

6. After providing the data, Press **Next.**
7. If your given data is correct you will be directed to the next window. Here, you will need to provide SMTP details.&#x20;

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/6sv60MvJVbaXqQgdD1ZV/image.png" alt=""><figcaption><p>SMTP Details Window</p></figcaption></figure>

8. Provide your SMTP information here. SMTP is to receive emails. To know more about SMTP Host, Port and security details for popular mail servers check below[.](https://docs.myalice.ai/myalice-guide-arabic/myalice-channels/connect-your-email/broken-reference)

{% tabs %}
{% tab title="Gmail" %}
SMTP Host : smtp.gmail.com\
SMTP Port : 587\
SMTP Security: TLS\
SMTP Email: Email Address (Which you are trying to connect) \
SMTP Password: Password for provided email
{% endtab %}

{% tab title="Outlook" %}
SMTP Host : smtp-mail.outlook.com\
SMTP Port : 587\
SMTP Security: STARTTLS\
SMTP Email: Email Address (Which you are trying to connect) \
SMTP Password: Password for provided email
{% endtab %}

{% tab title="Yahoo Mail" %}
**For Yahoo Mail:**\
SMTP Host : smtp.mail.yahoo.com\
SMTP Port : 465\
SMTP Security: SSL\
SMTP Email: Email Address (Which you are trying to connect) \
SMTP Password: Yahoo Mail app password for provided email (it’s *not* the password you use to log in to Yahoo Mail). See below to Genarate App Password.

**How to Generate App Password:**&#x20;

To use the Yahoo Mail SMTP server, you first need to create a dedicated app password. Earlier, you could use your Yahoo Mail password, but Yahoo updated this requirement to improve security. Now, you need to generate a unique app password.

Thankfully, generating a Yahoo Mail app password is pretty straightforward. To get started, go to your account settings area and then click on the **Account Security** tab.

You can access your account settings area by clicking on your username/icon in the top-right corner. Or, you can [click this link to go straight to the account security area](https://login.yahoo.com/myaccount/security/) (as long as you’re logged in to Yahoo Mail already).

Then, click the **Generate app password** link under the **Other ways to sign in** section.

&#x20;                                      ![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/LmALevE3zkwOIbWFYCK3/image.png)

You should now see a popup. Go ahead and click the blue **Get started** button in the popup to advance.

Enter your app name, which is just an internal name to help you remember it — for example, “WordPress” or “Thunderbird.” Label this correctly, as it’ll help you remember the service the password connects. Next, click the **Generate password** button.

&#x20;                                     ![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/k6QWddmv30MB86KC9bcT/image.png)

You should then see the app password — keep this handy because you’ll need it when you configure the Yahoo Mail SMTP settings in whatever app you’re using.

&#x20;                                      ![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/a3JN63GjHzLOc2JYccmJ/image.png)
{% endtab %}

{% tab title="Zoho Mail" %}
SMTP Host : **smtp.zoho.com**\
SMTP Port : 465\
SMTP Security: SSL\
SMTP Email: Email Address (Which you are trying to connect) \
SMTP Password: Password for provided email (You might require an [Application-specific Password](https://www.zoho.com/mail/help/adminconsole/two-factor-authentication.html#alink5) if Two-factor Authentication is enabled).
{% endtab %}

{% tab title="iCloud Mail" %}
SMTP Host : smtp.mail.me.com\
SMTP Port : 587\
SMTP Security: SSL (*If you see an error message when using SSL, try using TLS instead)*\
SMTP Email: Email Address (Which you are trying to connect) \
SMTP Password: [Generate an app-specific password](https://support.apple.com/kb/HT204397) for provided email
{% endtab %}
{% endtabs %}

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/2wzPCjJbyzcdnXVPjeWX/image.png" alt=""><figcaption><p>Sample SMTP data </p></figcaption></figure>

9. Check "Same as IMAP" to use the data given for SMTP.&#x20;
10. After providing the data, Press **Next.**

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/B1Gbqbo7gNOmhG1vsJR8/image.png" alt=""><figcaption><p>Other Window</p></figcaption></figure>

11. Put your Display Name here.&#x20;
12. Give your Channel name for this email channel.&#x20;
13. Press **Verify.**&#x20;
14. You will receive a success message if your data is correct. Congrats! you have setup an email channel.&#x20;

    <figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/AH6wpnkWMWj9JwayICSL/image.png" alt=""><figcaption><p>Success Message</p></figcaption></figure>
