> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getthread.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Turn a Microsoft 365 mailbox into a ticket channel

> Set up Thread's email channel: connect Microsoft 365, create an email agent for a shared mailbox, and let inbound email become tickets while Inbox replies send as email.

> [!NOTE]
>
> The email channel is a limited-availability feature in partner beta. Thread
> enables it per workspace. Contact your Thread representative or CSM if you'd
> like it turned on for your workspace. Until it is enabled, the **Email**
> section doesn't appear in Admin Panel.

With the email channel, Thread owns a support mailbox end to end. Thread polls a Microsoft 365 mailbox, turns each new email into a ticket in Thread Inbox, and sends your replies back out as email in the same mail thread. Email requests stop depending on your PSA's email connector and land in Inbox like chat does.

## Before you begin

Make sure you have:

* The email channel enabled for your workspace by Thread.
* Admin access to Admin Panel, plus a Microsoft 365 admin who can grant consent.
* A shared mailbox in Microsoft 365 for support requests (for example, `support@yourmsp.com`).
* The PSA's email connector disconnected from that mailbox. If ConnectWise, Autotask, or HaloPSA also reads the mailbox, every message becomes two tickets. If the PSA also emails the contact, every reply is delivered twice.

## Connect Microsoft 365

1. In Admin Panel, open **Email**.
2. Select **Connect Microsoft 365**.
3. Finish the Microsoft consent prompt in the popup. The page updates on its own once consent is granted.

The connection lets Thread read mail from and send mail as the mailboxes you choose in the next step.

## Create an email agent

An email agent is the routing configuration for one mailbox. It is not an AI agent and does not reply to customers on its own.

1. In **Email > Agents**, select the option to add an agent.
2. Fill in the agent settings:

| Setting | What it does |
| - | - |
| **Name** | A label for the agent, such as "Support mailbox". |
| **Mailbox** | The Microsoft 365 mailbox to poll. Search the list, or select **Refresh the list** if you just created the mailbox. The mailbox can't be changed after the agent is created. |
| **Default board** | The board new email tickets are created on. |
| **Default status** | The status new email tickets start in. Pick a board first. |
| **Default company** | The client company used when the sender's address doesn't match a known contact. |
| **Reopen window (hours)** | A reply to a closed ticket reopens it within this window (1 to 8760 hours). Leave it blank to always open a new ticket instead. |
| **Don't reopen closed tickets on thank-you replies** | Keeps a closed ticket closed when the contact's reply only says thanks. Off by default. See [Thank-you replies](#thank-you-replies). |
| **CC member participants on replies** | Adds the ticket's member participants, such as the assignee, to Cc on outbound replies. Off by default, so replies go to contacts only. |

3. Confirm the checkbox stating your PSA sends and receives no email for this mailbox.
4. Optionally, choose a reply template and add a signature. See [Customize replies](#customize-replies).
5. Select **Create agent**.

These settings sit under **General** on the agent form. You can change them later by opening the agent in **Email > Agents** and selecting **Save**.

## Customize replies

The **Reply template** section of the agent controls how outbound replies look. A preview updates as you change the settings.

### Reply template

Pick one of two templates:

* **Plain text**: a simple reply with no styling or branding. This is the default.
* **Branded**: an HTML email with a colored header, the replying technician's name and avatar, and a footer.

When you select **Branded**, two more settings appear:

| Setting | What it does |
| - | - |
| **Brand color** | The header color. Without a color, Thread uses a neutral slate. Select **Reset color** to go back to the default. |
| **Logo** | A PNG or JPEG shown on the brand color at the top of every reply. Without a logo, Thread shows the company name. |

The branded template takes its color and logo from the email agent only, not from your Messenger design. It adds a **Chat now** button that opens the contact's Messenger thread. Thread shows the button only when the contact's company has Messenger enabled. The branded email stays readable in dark mode in clients such as Apple Mail, Outlook, and Gmail.

### Signature

Add a rich-text signature in the **Signature** editor. Thread adds it below every reply from the agent, with either template. Use these placeholders, which Thread fills in when it sends the email:

* `{tech_name}`: the name of the technician who replied.
* `{company_name}`: your company name.

For example:

```text theme={null}
{tech_name}
Service desk, {company_name}
```

Thread cleans the signature when you save it. It keeps basic formatting, links, and `https` images, and removes other markup. What you see after saving is what contacts receive.

An agent on **Plain text** with no signature sends the same email it always has.

## What happens to inbound email

Thread checks the mailbox about every two minutes. For each new message, Thread:

* Matches the sender to an existing contact, or creates a contact under the agent's default company.
* Creates a ticket on the default board and status, or appends the message to the existing ticket when the email is a reply to an ongoing conversation.
* Falls back to the `[Ticket #<number>]` tag in the subject when a reply has lost its reply headers. Thread only matches the ticket by its tag when the sender is a known contact of the ticket's client. Otherwise, Thread opens a new ticket.
* Matches replies to tickets your PSA emailed before you switched to Thread email on a best-effort basis, using the ticket number your PSA puts in the subject line. Thread only tries your own PSA's format (ConnectWise, Autotask, or HaloPSA), and the sender must belong to the ticket's client. If no match is found, the reply opens a new ticket. Once a reply matches, later replies in that mail thread stay on the same ticket.
* Reopens a closed ticket when the reply arrives inside the reopen window, unless the reply is only a thank-you and the agent keeps closed tickets closed on thank-you replies. Outside the window, Thread opens a new ticket.
* Adds the sender and everyone on To and Cc as participants on the ticket.
* Carries attachments into the thread and your PSA.
* Shows inline images in place, so an email with pasted images arrives in Inbox as one message.
* Skips automated mail such as bounces, auto-replies, and bulk sends, so they never become tickets.
* Separates the sender's signature from the message with a divider in the note, when the sender's email client marks its signature. Outlook on the web, Gmail, and Thunderbird mark signatures. Outlook desktop doesn't, so its signatures appear as part of the message.

### Thank-you replies

When **Don't reopen closed tickets on thank-you replies** is on, a reply to a closed ticket that only says thanks, such as "Thanks, all sorted", leaves the ticket closed. Thread still adds the reply to the ticket as a note and syncs it to your PSA. Only the reopen is skipped.

Follow-ups still reopen the ticket. Thread reopens when the reply includes attachments, a question mark, more than 12 words, or words like "but", "still", "not", or "again". For example, "Thanks, but it's still broken" reopens the ticket. When Thread can't tell, it reopens.

Detection is best effort. Your PSA may still reopen the ticket by its own rules.

### Email received before the agent

Email received before the agent was created is not imported. The agent only processes mail that arrives after it starts watching the mailbox.

## Reply from Inbox

Replies on an email ticket go out as email when the **Send by email** control is on. Email tickets are created with it on, so replies reach the contact by default.

* Thread sends the reply from the connected mailbox, in the same mail thread the contact started.
* Replies are addressed to the ticket's contact participants. Member participants are added on Cc only when the agent has **CC member participants on replies** on. With it off, assigning or dispatching a ticket to a technician doesn't add them to the email.
* Replies use the agent's reply template and signature.
* The first reply adds ` [Ticket #<number>]` to the subject, and every reply includes `Ticket #<number>` in its footer. The tag keeps a contact's later replies on the same ticket.
* Below the footer, each reply quotes the thread's earlier customer-visible messages, newest first, like Outlook does. Thread quotes up to the last 5 messages from the past 30 days. Internal notes and AI notes are never quoted.
* Internal notes are never emailed.
* A reply a technician writes inside the PSA is also sent by email.
* If a send fails after retries, Thread posts an internal note on the ticket so the failure is visible.

## Monitor the channel

The **Email > Activity** tab lists every message the channel received or sent, with an outcome for each:

* **Processed**: the message became a ticket or a note.
* **Skipped (sent by us)**: the message originated from Thread, so it was dropped to prevent a loop.
* **Skipped (automated mail)**: bounces, auto-replies, and bulk mail.
* **Failed**: the message could not be processed. Failed messages can be reprocessed from the activity log.

Filter the list by direction (received or sent) and by outcome to find a specific message.


## Related topics

- [Connect Microsoft 365 clients](https://docs.getthread.com/automagically/connect-microsoft-365-clients.md)
- [Choose which ticket updates post to a channel](https://docs.getthread.com/companion-apps/choose-which-ticket-updates-post-to-channel.md)
- [Install the Teams Companion App](https://docs.getthread.com/companion-apps/install-the-teams-companion-app.md)
