# Connect an email inbox

> How to create an email inbox with Google (app password) or another SMTP/IMAP provider, how syncing works and the daily campaign limit.

The **Email** inbox turns an email address into a support channel. Incoming emails become conversations, and your team's replies go out through the mailbox's own mail server.

## How to connect

1. In the sidebar, open **Inboxes** and click **New inbox**.
2. Choose **Email**.
3. Fill in the inbox **Name**.
4. Under **How to connect**, choose the provider: **Google** or **Other provider**.
5. Fill in the provider details, described below.
6. Click **Create inbox**.

The **Microsoft** option appears in the list, but it isn't available for new inboxes yet.

Before saving, TalkVend tests the password against IMAP (incoming) and SMTP (outgoing). If it works, you see **Email inbox created**. Only emails received from that moment on become conversations: older history isn't imported.

## Google (Gmail)

Google won't accept the account's regular password. You need an app password:

1. In your Google account, turn on 2-step verification.
2. Under **Security → App passwords**, create an app password.
3. In the TalkVend form, fill in the **Email address**, the **Sender name** (optional) and paste the 16-letter password into **App password**.

Gmail's servers are already set up: you don't need to enter IMAP or SMTP.

## Other provider (SMTP/IMAP)

For any other provider, get the IMAP and SMTP details from your email provider and fill in:

- **Email address** and **Sender name** (how the customer sees who sent it; when blank, only the address shows);
- **IMAP server** and **Port** (default 993), with **Secure connection (TLS/SSL) on IMAP**;
- **SMTP server** and **Port** (default 587). Check **Direct SSL on SMTP (port 465)** if your provider uses port 465; unchecked, the connection uses STARTTLS (port 587);
- **Username**: when blank, the email address itself is used;
- **Password**: never shown after saving.

## How emails arrive

Email doesn't use a webhook. TalkVend checks the mailbox over IMAP at regular intervals, roughly once a minute. So a new email may take about a minute to show up in Conversations.

On the inbox page, the **Sync** block shows the state:

- **Syncing normally**: all good.
- **Authentication failed — update the password or reconnect**: the password changed or was revoked. Click **Update password** and enter the new one. It is validated against IMAP and SMTP before saving, and sync resumes on its own.
- **Couldn't connect to the server**: the mail server didn't respond.
- **No recent check — sync may have stopped**.

Use **Sync now** to fetch new emails right away. The **Last check** line shows when the mailbox was last checked.

Delivery failure notices (bounces) don't become conversations.

## Email campaigns and the daily limit

An email inbox can also send campaigns. Sends go out through the mailbox's own SMTP and respect a daily limit, so you don't exceed your provider's quota.

To adjust the limit:

1. On the inbox page, click **Edit**.
2. Fill in **Daily campaign limit** with a whole number between 1 and 100,000.
3. Click **Save**.

If you leave the field empty, the provider default applies, leaving room for support replies. The limit in use shows on the inbox page under **Campaigns per day**. When the limit is reached, the campaign stays active and waits until there is room within the last 24 hours to keep sending.

> **Tip:** the limit only counts campaign emails. Support replies also use your provider's quota, which is why the default leaves some room.

## Unsubscribe

Every campaign email carries an unsubscribe link. Opening the link shows a confirmation page. Only after confirming does the address go into the suppression list, and later campaigns stop sending to it. The list lives in **Settings → Suppression**.

Replies to a campaign arrive in the inbox as regular conversations. Learn more in [Campaigns](https://talkvend.com/en/help/campanhas).
