> For AI agents: the complete documentation index is available at https://docs.heys.ai/workstation/en/llms.txt, the full documentation bundle is available at https://docs.heys.ai/workstation/en/llms-full.txt.

# Mail

HeyS can host your mailboxes directly: add your work and personal mailboxes, and receive, read, reply to and write mail in one place. When you see a message that needs handling, click **Hand to AI**, and the AI can read the message, look up earlier correspondence, save attachments to the workspace and draft a reply. By default, messages the AI writes first go to **Waiting for you**, and they are sent only when you click Send.

This page covers:

- where the Mail page is and how to add mail accounts (including Outlook and **Let HeyS set it up**);
- the inbox and folders, reading, writing, replying and forwarding;
- letting the AI handle mail, the three AI sending settings and **Waiting for you**;
- Settings → Mail: the icon rail badge, the network proxy and the send log;
- the Sprite watching your mail and summarizing it every day.

:::note Local desktop only
Mail is available only in the desktop app's local window. The web app, Docker deployments and remote windows opened by CoWork have no Mail; opening the Mail page there shows "Mail is available only in the desktop app on this computer."
:::

## The Mail page \{#the-mail-page}

Mail is on the icon rail **below the Sprite** (the envelope icon). Before you add any account, the Mail page looks like this:

<figure>

![The Mail page (no accounts yet): the envelope icon below the Sprite on the icon rail is selected; the left column is titled "Mail", with "New message", "All Inboxes", "Waiting for you", "Flagged" and "Add account" below it; in the middle of the main area is "Bring your mailbox here", saying that Feishu, Tencent Exmail, QQ, NetEase, Alibaba, Gmail, iCloud and more are supported, with an "Add account" button below](/screenshots/m00-邮件-空.webp)

<figcaption>The Mail page (no accounts yet): the envelope icon below the Sprite on the icon rail is selected; the left column is titled "Mail", with "New message", "All Inboxes", "Waiting for you", "Flagged" and "Add account" below it; in the middle of the main area is "Bring your mailbox here", saying that Feishu, Tencent Exmail, QQ, NetEase, Alibaba, Gmail, iCloud and more are supported, with an "Add account" button below</figcaption>
</figure>

The Mail page has three columns:

| Position          | Contents                                                                                                                                                               |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Left column**   | Four fixed entries, **New message**, **All Inboxes**, **Waiting for you** and **Flagged**; below them each mail account and its folders; at the bottom **Add account** |
| **Middle column** | The message list of the current folder, with a search box and the **All / Unread / Flagged / Attachments** filters                                                     |
| **Right column**  | The body of the selected message, with reply, forward and other actions at the top, plus **Hand to AI**                                                                |

Mail accounts belong to the HeyS account you sign in with and **do not change with the space**: whichever space you switch to, the Mail page shows the same mailboxes. Which spaces' Agents may use a mailbox is controlled separately in the account settings ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you)).

## Adding a mail account \{#adding-a-mail-account}

HeyS connects to a mailbox over IMAP (receiving) and SMTP (sending), and signs in with the mailbox's **app password** (some providers call it an authorization code, a client password or an app-specific password), **not the password you use to sign in to webmail**. Before you add an account, turn on IMAP / SMTP in the mailbox's web settings and create an app password.

<figure>

![The "Add mail account" dialog: Email address (demo@acme.test), Provider (Detect automatically), App password (hint "App password or authorization code (not your login password)"), "Enter servers manually", and below it the line "The password is kept on this computer with system encryption and is never sent to the AI."; "Let HeyS set it up" at the bottom left, "Cancel" and "Test and add" at the bottom right](/screenshots/m01-添加账户-03d91b.webp)

<figcaption>The "Add mail account" dialog: Email address (demo@acme.test), Provider (Detect automatically), App password (hint "App password or authorization code (not your login password)"), "Enter servers manually", and below it the line "The password is kept on this computer with system encryption and is never sent to the AI."; "Let HeyS set it up" at the bottom left, "Cancel" and "Test and add" at the bottom right</figcaption>
</figure>

1. On the Mail page, click **Add account** in the left column (the button in the middle of the empty Mail page and **Add account** in Settings → Mail do the same).
2. Fill in the **Email address**. **Provider** defaults to **Detect automatically**: common providers are recognized from the email domain, and for a company's own domain HeyS works out the provider from that domain's mail servers. Once recognized, it shows "Detected: …" or "Detected from the domain's mail servers: …" and fills in the server addresses.
3. The dialog shows a one-line note for that provider telling you where to turn on IMAP / SMTP and create an app password. Follow it on the mailbox's website, then paste the app password into **App password**.
4. Click **Test and add**. HeyS first actually connects to the incoming and outgoing servers with what you entered, showing "Testing the connection…"; once the test passes, the account appears in the left column and mail starts to sync.

Providers that are detected automatically include: Feishu Mail, Tencent Exmail, QQ Mail, NetEase 163 / 126 / yeah.net, NetEase enterprise mail, Alibaba Mail (enterprise and personal), Sina Mail, Sohu Mail, 139 Mail, Gmail, iCloud, Yahoo and Outlook. You can also pick a provider by hand in the **Provider** drop-down, or choose **Other (enter servers manually)**.

Where a few common providers create app passwords (the dialog also tells you):

| Provider       | Where to create it                                                                                          |
| -------------- | ----------------------------------------------------------------------------------------------------------- |
| Feishu Mail    | Settings → Third-party email clients: turn on IMAP / SMTP and create an app password                        |
| Tencent Exmail | Settings → Client settings: turn on IMAP / SMTP and create a client password                                |
| QQ Mail        | On the web, Settings → Account: turn on the IMAP / SMTP service and use the authorization code it generates |
| NetEase Mail   | On the web, Settings → POP3/SMTP/IMAP: turn on the service and use the authorization code                   |
| Alibaba Mail   | Settings → Account and security: create a third-party client password                                       |
| Gmail          | First turn on 2-Step Verification in your Google account, then create an app password                       |
| iCloud         | "Sign-In and Security → App-Specific Passwords" in your Apple account                                       |

### Entering servers manually

When the provider is not recognized (the message "The provider of this address was not recognized; fill in the servers below.") or your mailbox runs on your company's own mail server, click **Enter servers manually** and fill in IMAP and SMTP separately:

| Item                     | Description                                                                                                        |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| **Server address, port** | Ask your mail administrator. Common combinations: IMAP 993 and SMTP 465 (SSL); or IMAP 143 and SMTP 587 (STARTTLS) |
| **Encryption**           | SSL, STARTTLS or **None**; it must match the port                                                                  |
| **Login user name**      | Same as the email address by default; change it only when the server needs a different user name                   |

### When the test fails

If the test does not pass, the dialog states the reason and marks whether the incoming or the outgoing server is the problem:

| Message                                         | What to do                                                                                                                                                                                                                 |
| ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Wrong password                                  | Make sure you entered the app password or authorization code, not your login password                                                                                                                                      |
| IMAP / SMTP is not enabled for this mailbox yet | Turn it on in the mailbox's web settings                                                                                                                                                                                   |
| Cannot reach the server                         | Check the server address, port and network                                                                                                                                                                                 |
| The connection timed out                        | Check the port and network, and try again later                                                                                                                                                                            |
| The encrypted connection failed                 | Check that the encryption matches the port (SSL is usually 993 / 465, STARTTLS usually 143 / 587)                                                                                                                          |
| This mailbox has already been added             | No need to add it again                                                                                                                                                                                                    |
| Receiving works but sending cannot connect      | The current network or proxy most likely blocks the sending ports (465 / 587); switch to a proxy that allows sending under **Settings → Mail → Network proxy**, or try another network ([Settings → Mail](#settings-mail)) |
| This mailbox's server does not accept passwords | Such mailboxes can only sign in through account authorization and cannot be added yet; for Outlook and Hotmail see below                                                                                                   |

### Where the password is kept

**The app password is kept on this computer only, encrypted by the system, and is never sent to the AI.** You enter it in the dialog only when you add the account or change the password; the Agent does not need it to read or write mail, and cannot get it.

:::note Note
A few computers have no usable system keychain. The dialog then says "This computer has no system keychain; the password is kept in memory only and must be entered again after the app restarts." In that case, enter the app password again in the account settings each time you restart HeyS.
:::

### Outlook and Hotmail

Outlook and Hotmail mailboxes do not use an app password; they sign in with a Microsoft account:

1. Enter an Outlook or Hotmail address as the email address. A note appears in the dialog, and the button changes to **Sign in with Microsoft**.
2. Click the button. HeyS opens the Microsoft sign-in page in your system browser and shows "The Microsoft sign-in page is open in your browser. After you sign in and agree, you will come back here automatically."
3. On Microsoft's page, sign in to **the same mailbox** and grant access. The browser returns to HeyS automatically and the account is added.

- The sign-in credentials are likewise kept on this computer only, encrypted by the system, and are never sent to the AI;
- if you do not finish signing in within five minutes, you are asked to try again; if you do not grant access on Microsoft's page, the account is not added;
- if the account you sign in with in the browser differs from the address you entered, you are asked to switch to the account you want to add;
- if you later change the Microsoft account password or revoke access, the account shows "Sign-in has expired; sign in again"; open the account settings and click **Sign in again**.

### Let HeyS set it up

If you do not know where to turn on IMAP or create an app password, or the test keeps failing, click **Let HeyS set it up** at the bottom left of the Add account dialog:

- HeyS starts a new session in the **current space** and hands the AI the address you entered, the provider and servers it detected, the provider's note and the error from the test you just ran;
- the AI uses the built-in browser (or Computer Use when an app on this computer is involved) to walk you to the provider's settings page to turn on IMAP / SMTP and create an app password; if the test failed, it also helps you troubleshoot from the message;
- **you sign in, pass two-step verification and create the password yourself on the page**; the AI does not type your account or password for you, and does not ask you to send the password or authorization code in the conversation;
- when everything is ready, go back to **Mail → Add account**, paste the app password into **App password** and click **Test and add**. If the servers need to be entered by hand, the AI tells you what to enter.

The built-in browser and Computer Use are available only on the local desktop ([Built-in Browser and Sites](https://docs.heys.ai/workstation/en/built-in-browser-and-sites.md) and [Computer Use](https://docs.heys.ai/workstation/en/computer-use.md)).

## Inbox and folders \{#inbox-and-folders}

Once you have added accounts, the left column of the Mail page lists each account and its folders:

<figure>

![All Inboxes: the left column has two accounts, demo@acme.test (blue dot) and ops@acme.test (green dot), each expanded to Inbox, Drafts, Sent, Archive, Trash and Junk, with the unread count 5 next to All Inboxes; the middle column is the "All Inboxes" list, where the colored bar on the left of each message shows which account it came from, unread messages have a black dot in front, and "HT-2026-018 续签合同草案" (draft renewal contract) has a paper clip; the right column is reading this message, with Reply, Reply all, Forward, Archive, Delete, Flag, Mark as unread and Move to in the top bar, "Hand to AI" at the top right, and the attachment "云服务采购协议-续签草案.txt" below the body; the badge on the Mail icon in the icon rail is 5](/screenshots/en/m02-邮件-阅读.webp)

<figcaption>All Inboxes: the left column has two accounts, demo@acme.test (blue dot) and ops@acme.test (green dot), each expanded to Inbox, Drafts, Sent, Archive, Trash and Junk, with the unread count 5 next to All Inboxes; the middle column is the "All Inboxes" list, where the colored bar on the left of each message shows which account it came from, unread messages have a black dot in front, and "HT-2026-018 续签合同草案" (draft renewal contract) has a paper clip; the right column is reading this message, with Reply, Reply all, Forward, Archive, Delete, Flag, Mark as unread and Move to in the top bar, "Hand to AI" at the top right, and the attachment "云服务采购协议-续签草案.txt" below the body; the badge on the Mail icon in the icon rail is 5</figcaption>
</figure>

| Left column entry          | Contents                                                                                                                                                                                                                              |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **All Inboxes**            | Mail from the inboxes of all accounts, together in time order; the number next to it is the unread count. The **colored bar** on the left of each message shows which account it came from (change the color in the account settings) |
| **Waiting for you**        | Messages the AI has written and that wait for you to click Send ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you)); the number next to it is how many                                                                |
| **Flagged**                | Flagged messages from all accounts                                                                                                                                                                                                    |
| **Each account's folders** | Inbox, Drafts, Sent, Archive, Trash and Junk; any other folders on the server are under **More folders**                                                                                                                              |

- The account name defaults to "Provider - address"; you can change the **Display name** in the account settings;
- click the arrow to the left of the account name to collapse or expand its folders;
- hover over the account name and "⋯" appears on the right: **Account settings**, **Sync now**, **Remove account**;
- while an account is syncing, a refresh icon spins next to its name; when syncing fails or the account needs the password again or a new sign-in, a warning icon appears next to the name; click it to open the account settings directly.

**Remove account** deletes the mail cache and the saved password on this computer; **mail on the server is not affected**, and you can add the account again later.

### List, search and filters

- The search box above the list searches subject, sender, recipients and body, across the mail already synced to this computer;
- four filter buttons: **All / Unread / Flagged / Attachments**;
- the refresh button at the top right of the list syncs once right away;
- scroll to the bottom of the list and click **Load older messages from the server** to fetch earlier mail;
- each message shows the sender, time, subject and the start of the body; unread messages have a black dot in front, and messages with attachments have a paper clip; in **Sent** and **Drafts** it shows "To: recipient".

### Handling several at once

Hold ⌘ (Ctrl on Windows) and click messages one by one to select several. Above the list appear "\{N} selected" and a row of buttons: Mark as read, Mark as unread, Flag, Archive and Delete; the × at the far right cancels the selection.

## Reading mail \{#reading-mail}

Click a message to show its body in the right column; it is marked as read at the same time. Along the top:

| Button                                | What it does                                                                                                                                              |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Reply**, **Reply all**, **Forward** | Opens the compose panel with the recipients, subject and quoted original filled in ([Writing, replying and forwarding](#writing-replying-and-forwarding)) |
| **Archive**                           | Moves it to Archive                                                                                                                                       |
| **Delete**                            | Moves it to Trash                                                                                                                                         |
| **Flag / Unflag**                     | Flagged messages appear under **Flagged** in the left column                                                                                              |
| **Mark as unread / Mark as read**     | When you have read a message but want to come back to it later, mark it unread again                                                                      |
| **Move to**                           | Pick a folder to move it to                                                                                                                               |
| **Hand to AI**                        | Hands this message to the AI ([Hand to AI](#hand-to-ai))                                                                                                  |

Above the body are the sender, the email address, the time and the "To:" recipients; click the arrow next to them to see the full details such as Cc. Earlier messages in the same thread are stacked above; click one to open it. Attachments are listed below the body, with file name and size.

### Remote images are not loaded by default

<figure>

![Reading a promotional email "本周精选：办公设备冬季特惠" (This week's picks: winter office equipment deals): above the body is the notice "To protect your privacy, remote images in this message were not loaded.", with "Show images" and "Always show images from this sender" on the right; the body has a "冬季特惠" (Winter deals) heading and a line of text with a link](/screenshots/en/m03-邮件-外部图片.webp)

<figcaption>Reading a promotional email "本周精选：办公设备冬季特惠" (This week's picks: winter office equipment deals): above the body is the notice "To protect your privacy, remote images in this message were not loaded.", with "Show images" and "Always show images from this sender" on the right; the body has a "冬季特惠" (Winter deals) heading and a line of text with a link</figcaption>
</figure>

Many emails keep their images on the sender's server, and loading them tells the sender that you opened the message. So HeyS **does not load remote images in emails by default**; above the body it says "To protect your privacy, remote images in this message were not loaded.":

- **Show images**: shows this message's images this time only;
- **Always show images from this sender**: from now on, images in mail from this sender are shown directly.

Scripts in emails never run.

## Writing, replying and forwarding \{#writing-replying-and-forwarding}

Click **New message** in the left column, or **Reply**, **Reply all** or **Forward** while reading, to open the compose panel:

<figure>

![The compose panel "Q3 区域汇报材料" (Q3 regional report materials): sender demo@acme.test (with a drop-down to switch accounts), recipient lisi@acme.test, "Cc / Bcc" on the right, the subject, and three paragraphs of body text; "Send" and "Attach" at the bottom, "Save draft" at the bottom right](/screenshots/m04-写邮件.webp)

<figcaption>The compose panel "Q3 区域汇报材料" (Q3 regional report materials): sender demo@acme.test (with a drop-down to switch accounts), recipient lisi@acme.test, "Cc / Bcc" on the right, the subject, and three paragraphs of body text; "Send" and "Attach" at the bottom, "Save draft" at the bottom right</figcaption>
</figure>

| Item           | Description                                                                                                                                                                                                                                     |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **From**       | With several accounts, pick which mailbox to send from in the drop-down                                                                                                                                                                         |
| **To**         | Required; click **Cc / Bcc** on the right to fill in Cc and Bcc                                                                                                                                                                                 |
| **Subject**    | Re: / Fwd: is added automatically when replying or forwarding                                                                                                                                                                                   |
| **Body**       | Type the text directly; bold, lists and links work (written the same way as Markdown in the input box, such as <code>**bold**</code>), and the message goes out formatted. If the account has a signature, it is added at the end automatically |
| **Attach**     | Attaches files from this computer; forwarding brings along **Attachments of the original message**                                                                                                                                              |
| **Send**       | Sends right away and shows "Sent"                                                                                                                                                                                                               |
| **Save draft** | Saves it to the account's Drafts folder and shows "Saved to Drafts"                                                                                                                                                                             |

When you reply or forward, the original message is quoted below the body automatically ("On \{date}, \{from} wrote:" or "---------- Forwarded message ----------").

If you close the panel halfway through, HeyS asks "This message has not been sent. Save it to Drafts?": choose OK to save a draft, or Cancel to close it without saving.

The name recipients see is set by **Sender name** in the account settings ([Settings → Mail](#settings-mail)).

## New mail alerts and the icon rail badge \{#new-mail-alerts-and-the-icon-rail-badge}

When new unread mail is synced into an inbox, HeyS tells you:

- the desktop app shows a **system notification** with the sender as the title and the subject as the content; when several arrive at once, they are combined into one "\{N} new messages". Click the notification to open that message directly;
- you are not disturbed while you are looking at the Mail page with the window in front;
- this alert shares its switch with task notifications: turn off **Enable notifications** under **Settings → General → Task notifications** and new mail no longer alerts you either; with **Only when the window is not focused** turned on, when you are looking at another page of HeyS, new mail shows an in-app message instead ([Cron Jobs and Notifications](https://docs.heys.ai/workstation/en/cron-jobs-and-notifications.md) and [Spaces, Appearance and General Settings](https://docs.heys.ai/workstation/en/spaces-appearance-and-general-settings.md)).

Mail does not go into **Notifications** ([Cron Jobs and Notifications](https://docs.heys.ai/workstation/en/cron-jobs-and-notifications.md)); **Notifications** only receives messages from scheduled tasks and Cases.

### The icon rail badge and right-click menu

The badge on the **Mail** icon in the icon rail tells you how many messages need your attention. **Right-click** the icon for a small menu:

<figure>

![Right-clicking "Mail" in the icon rail: the upper part of the menu is "Sidebar badge" with three options "Number" (checked), "Dot" and "Approval only"; in the middle "Switch all accounts back to "Ask me every time""; at the bottom "Mail settings"](/screenshots/en/m09-邮件右键菜单.webp)

<figcaption>Right-clicking "Mail" in the icon rail: the upper part of the menu is "Sidebar badge" with three options "Number" (checked), "Dot" and "Approval only"; in the middle "Switch all accounts back to "Ask me every time""; at the bottom "Mail settings"</figcaption>
</figure>

| Menu item                                           | What it does                                                                                                                                       |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Sidebar badge: Number**                           | Shows the number of unread messages plus messages waiting for your approval (default)                                                              |
| **Sidebar badge: Dot**                              | Shows a blue dot when there is anything, without a number                                                                                          |
| **Sidebar badge: Approval only**                    | Counts only messages the AI has written for you to send; new mail is not shown                                                                     |
| **Switch all accounts back to "Ask me every time"** | Switches AI sending for all accounts back to needing your approval in one step ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you)) |
| **Mail settings**                                   | Opens **Settings → Mail**                                                                                                                          |

## Hand to AI \{#hand-to-ai}

When you read a message that needs handling, click **Hand to AI** at the top right:

1. HeyS jumps to the New Task page of the current space. The input box already holds a tag for this message (such as "十月发票请款", October invoice request) and the line "Please handle this email for me:".
2. Then say clearly how you want it handled, for example "Reply to 王五: I will put the travel invoices together and send them to finance by Thursday" or "Save the attachment to the project and turn it into a table".
3. Click Send. The AI first reads the message, then does what you asked.

<figure>

![The New Task page: the project bar has "季度经营分析" (Quarterly business analysis) selected, and the input box holds the mail tag "十月发票请款" (with ×) followed by the line "请帮我处理这封邮件：回复王五：我周四前把差旅发票汇总好发给财务。" (Please handle this email for me: reply to 王五 that I will put the travel invoices together and send them to finance by Thursday.)](/screenshots/m05-交给AI处理-f457cf.webp)

<figcaption>The New Task page: the project bar has "季度经营分析" (Quarterly business analysis) selected, and the input box holds the mail tag "十月发票请款" (with ×) followed by the line "请帮我处理这封邮件：回复王五：我周四前把差旅发票汇总好发给财务。" (Please handle this email for me: reply to 王五 that I will put the travel invoices together and send them to finance by Thursday.)</figcaption>
</figure>

Click × to remove the mail tag. After you send, your message bubble also carries the tag, so you can see later which message it was about.

What the AI can do with mail:

- read the body of a message and the whole thread;
- search mail by keyword and list the recent messages in a folder (to look up earlier correspondence with someone);
- save attachments to the workspace and go on to build tables or write documents with them;
- mark messages read, unread or flagged, and move or archive them;
- draft a message and save it to Drafts; write, reply to or forward a message, **where whether it can actually be sent is decided by the account's AI sending setting** ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you)).

You do not have to start from **Hand to AI**: as long as the current space is allowed to use a mailbox ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you)), you can say in any task in that space "See whether any customers wrote today" or "Find the quote email 李四 sent last week", and the AI looks it up on its own.

:::warning Warning
Incoming mail comes from outside and may carry instructions pretending to come from you. The AI treats the body of the mail it reads as external content and does not follow what the message asks. Even so, for mail involving payments, transfers or sending sensitive material, check it yourself before acting; that is also why AI sending asks for your approval by default.
:::

When the AI is done, its answer says what it did:

<figure>

![The session "待确认邮件回复" (Reply awaiting approval) is done: the user message carries the mail tag "十月发票请款"; the answer says "结论：已按你的口径回复王五，但这封邮件现在还没真正发出，已进入「待你确认」。" (Conclusion: replied to 王五 as you asked, but the message has not actually been sent yet; it is in Waiting for you.), followed by progress, verification (this mail account requires your approval before sending) and a suggestion (click Send in Waiting for you); the bold subheadings have a light highlighter background](/screenshots/m06-AI写好待确认-9533d5.webp)

<figcaption>The session "待确认邮件回复" (Reply awaiting approval) is done: the user message carries the mail tag "十月发票请款"; the answer says "结论：已按你的口径回复王五，但这封邮件现在还没真正发出，已进入「待你确认」。" (Conclusion: replied to 王五 as you asked, but the message has not actually been sent yet; it is in Waiting for you.), followed by progress, verification (this mail account requires your approval before sending) and a suggestion (click Send in Waiting for you); the bold subheadings have a light highlighter background</figcaption>
</figure>

In the picture above, this account's AI sending is set to **Ask me every time**, so the reply the AI wrote was not sent directly but put into **Waiting for you**, and the answer says so.

## AI sending and Waiting for you \{#ai-sending-and-waiting-for-you}

### Each account's AI sending setting

Whether the AI may send mail for you is decided by **each account's** own **AI sending** setting. Open it from "⋯ → **Account settings**" on the account in the Mail page's left column, or click the account's **Account settings** in **Settings → Mail**:

<figure>

![The "Account settings: ops@acme.test" dialog: Display name, Color (eight color dots, green selected), Sender name (hint "The name recipients see"), Signature; "AI sending" with three options "Not allowed", "Ask me every time" (selected) and "Send automatically", each with a one-line description; under "Which spaces' agents can use this mailbox", both the "All spaces" and "Sprite" switches are on; the "App password" field and "Test and save"; the expandable "Servers and advanced settings"; "Cancel" and "Save" at the bottom right](/screenshots/en/m10-邮件账户设置-9533d5.webp)

<figcaption>The "Account settings: ops@acme.test" dialog: Display name, Color (eight color dots, green selected), Sender name (hint "The name recipients see"), Signature; "AI sending" with three options "Not allowed", "Ask me every time" (selected) and "Send automatically", each with a one-line description; under "Which spaces' agents can use this mailbox", both the "All spaces" and "Sprite" switches are on; the "App password" field and "Test and save"; the expandable "Servers and advanced settings"; "Cancel" and "Save" at the bottom right</figcaption>
</figure>

| Option                          | What the AI can do                                                                     |
| ------------------------------- | -------------------------------------------------------------------------------------- |
| **Not allowed**                 | The AI can only save drafts; you send them yourself                                    |
| **Ask me every time** (default) | Messages the AI writes go to **Waiting for you** and are sent only when you click Send |
| **Send automatically**          | The AI sends mail directly, without asking you                                         |

When you switch to **Send automatically**, HeyS asks again: with automatic sending the AI sends mail without asking you, including replies or forwards based on what incoming messages say, and incoming messages may contain instructions pretending to come from you. Click OK only if you really want to turn it on.

:::danger Danger
Turn on **Send automatically** only for a mailbox used just for sending and receiving notifications that makes no commitments to anyone outside. Keep work and personal mailboxes on **Ask me every time**. To turn it off everywhere at once, right-click **Mail** in the icon rail and choose **Switch all accounts back to "Ask me every time"**, or click **Switch all back** in **Settings → Mail**.
:::

The AI uses the account's signature when it writes. Whatever the setting, every message the AI sends is recorded in **Settings → Mail → Send log** ([Settings → Mail](#settings-mail)).

### Which spaces' Agents can use this mailbox

**Which spaces' agents can use this mailbox** in the account settings:

- **All spaces**: on by default; tasks in every space can use this mailbox;
- with **All spaces** turned off, your spaces are listed below; check the ones that may use it. For example, a personal mailbox for just one space and a work mailbox for all spaces;
- **Sprite**: whether the Sprite may use this mailbox, including the Sprite watching new mail for you ([The Sprite watching your mail](#the-sprite-watching-your-mail)).

In a space that is not allowed, tasks cannot use this mailbox at all.

### Waiting for you

<figure>

![Mail "Waiting for you": the number 1 next to "Waiting for you" in the left column; under the middle column's title it says "Messages drafted by AI; they are sent only when you click Send.", listing one message "To: 王五 wangwu@acme.test", "Re: 十月发票请款"; the right column shows the message's sender, recipient and body, with four buttons at the top, "Send", "Edit, then send", "Send back with a note" and "Delete", and "Open the conversation that drafted this" below the body](/screenshots/m07-待你确认.webp)

<figcaption>Mail "Waiting for you": the number 1 next to "Waiting for you" in the left column; under the middle column's title it says "Messages drafted by AI; they are sent only when you click Send.", listing one message "To: 王五 &lt;wangwu@acme.test&gt;", "Re: 十月发票请款"; the right column shows the message's sender, recipient and body, with four buttons at the top, "Send", "Edit, then send", "Send back with a note" and "Delete", and "Open the conversation that drafted this" below the body</figcaption>
</figure>

Messages the AI has written are all under **Waiting for you** in the left column, and the icon rail badge counts them too. Select one to see its sender, recipients and body in the right column, with four buttons at the top:

| Button                    | What it does                                                                                                                                                                                                                                                                           |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Send**                  | The content is fine; send it as is                                                                                                                                                                                                                                                     |
| **Edit, then send**       | Opens the compose panel with what the AI wrote, so you can change it and then send                                                                                                                                                                                                     |
| **Send back with a note** | Do not send; write a line saying why, such as "Be a bit more polite, and say it will be ready before Friday", and click **Send back**. The note goes back as a follow-up to the session that wrote this message, and the AI revises it as you said and hands it back for your approval |
| **Delete**                | Discards the message                                                                                                                                                                                                                                                                   |

**Open the conversation that drafted this** below the body opens the session in which you had the AI write the message, so you can see what it was based on. A message that failed to send last time states the reason; fix it and send again.

### AI marks in Sent

Once sent, messages written by the AI are marked in the account's **Sent** folder:

- **Drafted by AI, sent after your approval**: the AI wrote it and you clicked Send in **Waiting for you**;
- **Sent by AI automatically**: the account is set to **Send automatically** and the AI sent it directly.

<figure>

![Sent: one message in the list, "To: 王五", "Re: 十月发票请款", with the blue text "Drafted by AI, sent after your approval" below it; the right column has 王五's original message stacked at the top, followed by the reply that was sent, "王五，我周四前把差旅发票汇总好发给财务。" (王五, I will put the travel invoices together and send them to finance by Thursday.)](/screenshots/en/m08-已发送-AI标注.webp)

<figcaption>Sent: one message in the list, "To: 王五", "Re: 十月发票请款", with the blue text "Drafted by AI, sent after your approval" below it; the right column has 王五's original message stacked at the top, followed by the reply that was sent, "王五，我周四前把差旅发票汇总好发给财务。" (王五, I will put the travel invoices together and send them to finance by Thursday.)</figcaption>
</figure>

Messages you write yourself have no mark.

## Settings → Mail \{#settings-mail}

**Settings → Mail** (in the **Integrations** group of the settings navigation, below **Sprite**) is where you manage mail accounts and AI sending:

<figure>

![Settings → Mail: the description "Mailboxes kept here and the record of AI sending. Mail accounts belong to the account you sign in with; add them again after switching accounts or organizations."; "Mail accounts" lists demo@acme.test and ops@acme.test, each marked "Ask me every time" with an "Account settings" button, and "Add account" below; "Switch all accounts back to "Ask me every time"" says "No account sends automatically" with "Switch all back"; "Sidebar badge" with three options (Number, Dot, Approval only); "Network proxy" in the "Network" group says "Mail follows the system proxy and currently goes through http://127.0.0.1:8889.", with three options (System, Manual, None); "Send log" lists "Re: 十月发票请款", to wangwu@acme.test, from demo@acme.test, "Drafted by AI, approved by you", 3 minutes ago](/screenshots/en/822-设置-邮件-f457cf.webp)

<figcaption>Settings → Mail: the description "Mailboxes kept here and the record of AI sending. Mail accounts belong to the account you sign in with; add them again after switching accounts or organizations."; "Mail accounts" lists demo@acme.test and ops@acme.test, each marked "Ask me every time" with an "Account settings" button, and "Add account" below; "Switch all accounts back to "Ask me every time"" says "No account sends automatically" with "Switch all back"; "Sidebar badge" with three options (Number, Dot, Approval only); "Network proxy" in the "Network" group says "Mail follows the system proxy and currently goes through http://127.0.0.1:8889.", with three options (System, Manual, None); "Send log" lists "Re: 十月发票请款", to wangwu@acme.test, from demo@acme.test, "Drafted by AI, approved by you", 3 minutes ago</figcaption>
</figure>

| Item                                                | Description                                                                                                                                                                                                   |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Mail accounts**                                   | One row per account, with the address and its current AI sending setting; **Account settings** opens the account settings dialog; **Add account** works as in [Adding a mail account](#adding-a-mail-account) |
| **Switch all accounts back to "Ask me every time"** | Shows how many accounts send automatically now; click **Switch all back** to change them back in one step. The button is disabled when no account sends automatically                                         |
| **Sidebar badge**                                   | Number, Dot or Approval only, the same as the right-click menu ([New mail alerts and the icon rail badge](#new-mail-alerts-and-the-icon-rail-badge))                                                          |
| **Network proxy**                                   | See below                                                                                                                                                                                                     |
| **Send log**                                        | Every message sent from here, both the ones you sent and the ones the AI sent                                                                                                                                 |

### Account settings

The items in the account settings dialog:

| Item                                          | Description                                                                                                                                                                                                                         |
| --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Display name**                              | The account name shown in the left column                                                                                                                                                                                           |
| **Color**                                     | The color of the dot in the left column and of the bar in All Inboxes                                                                                                                                                               |
| **Sender name**                               | The name recipients see                                                                                                                                                                                                             |
| **Signature**                                 | Added after the body of mail you write and mail the AI writes                                                                                                                                                                       |
| **AI sending**                                | Not allowed, Ask me every time or Send automatically ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you))                                                                                                            |
| **Which spaces' agents can use this mailbox** | All spaces or chosen spaces, plus the Sprite ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you))                                                                                                                    |
| **App password**                              | When the app password changes, enter the new one here and click **Test and save**; it is saved only if the test passes, with the message "Password updated". For an Outlook account this item is **Sign-in** with **Sign in again** |
| **Servers and advanced settings**             | Expand it to change the incoming and outgoing servers, and **Save a copy to Sent after sending**. This is off by default for providers that save a copy themselves, such as Gmail and iCloud, to avoid duplicates                   |

### Network proxy

Choose which proxy the mail connections use under **Network proxy**:

| Option               | Description                                                                                                                                                                                                                                                                                                                                                               |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **System** (default) | Follows the system proxy. Below it you see which proxy is in use, for example "Mail follows the system proxy and currently goes through [http://127.0.0.1:8889](http://127.0.0.1:8889)."; when no system proxy is set, it says it connects directly. Proxy software that only sets the system proxy works too, which suits using mailboxes like Gmail from mainland China |
| **Manual**           | All mail goes through the proxy you enter; SOCKS5 and HTTP are supported, written as <code>socks5://127.0.0.1:10808</code> or <code>[http://127.0.0.1:7890](http://127.0.0.1:7890)</code>. Click **Save**, and it says "Saved. Mailboxes will reconnect through the new proxy"                                                                                            |
| **None**             | Mail connects to the mail servers directly, without a proxy                                                                                                                                                                                                                                                                                                               |

:::tip Tip
If you can receive but not send, the current network or proxy most likely blocks the sending ports (465 / 587). HeyS says so directly when sending fails. Switch to a proxy that allows sending, or try another network; when the proxy itself cannot reach the mail server, the error message names the proxy in use.
:::

### Send log

The send log has one row per message: subject, recipients, the mailbox it was sent from, how it was sent and when. "How it was sent" is one of three: **Sent by you**, **Drafted by AI, approved by you** and **Sent by AI automatically**. To see what the AI has sent for you, this is the most complete place to look.

## The Sprite watching your mail \{#the-sprite-watching-your-mail}

Once the Sprite is activated ([Sprite](https://docs.heys.ai/workstation/en/sprite.md)), it can keep an eye on new mail for you. Open **Settings → Sprite** and find the **Mail** group:

<figure>

![The "Mail" group in Settings → Sprite: "Tell me about important mail" (on), described as "When new mail arrives it takes a look and tells you here about anything that needs a reply, a decision or has a deadline. Only mailboxes the sprite is allowed to use in account settings."; "Daily mail summary" (off), described as "Once a day it sums up the mail you received: what needs you first, the rest in a sentence. Nothing is sent if there is no new mail."; "Summary time" 08:30 AM (grayed out; it can be changed only after the summary is turned on)](/screenshots/en/s06-设置-精灵-邮件-2ef39a.webp)

<figcaption>The "Mail" group in Settings → Sprite: "Tell me about important mail" (on), described as "When new mail arrives it takes a look and tells you here about anything that needs a reply, a decision or has a deadline. Only mailboxes the sprite is allowed to use in account settings."; "Daily mail summary" (off), described as "Once a day it sums up the mail you received: what needs you first, the rest in a sentence. Nothing is sent if there is no new mail."; "Summary time" 08:30 AM (grayed out; it can be changed only after the summary is turned on)</figcaption>
</figure>

| Item                             | Description                                                                                                                                                                                                  |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Tell me about important mail** | When new mail arrives, it takes a quick look and tells you in the Sprite's conversation about anything that needs your reply, a decision or has a deadline; it does not bother you separately about the rest |
| **Daily mail summary**           | Every day at the set time, it sums up the mail received since the last summary: what needs you first, the rest in a line. When there is no new mail it says nothing                                          |
| **Summary time**                 | The time of day for the summary; it can be changed only after **Daily mail summary** is turned on                                                                                                            |

- When the Sprite mentions a message, there is an **Open the email** button below its message; click it to open the original directly;
- it **only looks at mailboxes the account settings allow the Sprite to use** ([AI sending and Waiting for you](#ai-sending-and-waiting-for-you));
- it does not mark mail as read when it looks at it, so the unread state you see on the Mail page is not affected;
- for a newly added mailbox, it only looks at mail that arrives after you added it, and does not dig up old messages to remind you about; mail that arrived while HeyS was closed is looked at the next time HeyS opens;
- the Sprite uses its **Chat model** ([Sprite](https://docs.heys.ai/workstation/en/sprite.md)) to look at mail, which uses some model usage.

To have it act on a message, just say "Reply to this one for me" in the Sprite's conversation; it starts a piece of work to handle it, and sending is again governed by the account's AI sending setting.

## Mail accounts belong to the signed-in account \{#mail-accounts-belong-to-the-signed-in-account}

- Mail accounts belong to **the HeyS account you are signed in with** (to this device when your organization is in device mode), not to a space;
- after you switch accounts or organizations, the Mail page is empty and you add your mailboxes again; **when you switch back to the original account, its mailboxes are still there**, with no need to add them again;
- mail accounts and the mail cache stay on this computer only and are not carried to your other computers by cloud sync; on another computer you add them separately;
- app passwords and Microsoft sign-in credentials are kept on this computer only, encrypted by the system, and are never sent to the AI;
- removing an account deletes only the cache and password on this computer; mail on the server is not affected.

## Common questions \{#common-questions}

| Symptom                                                            | What to do                                                                                                                                         |
| ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Cannot find **Mail**                                               | It is only in the desktop app's local window; the web app and remote windows do not have it                                                        |
| The test says the password is wrong                                | Use the mailbox's app password or authorization code, not your login password; if you do not know where to create it, click **Let HeyS set it up** |
| Can receive but cannot send                                        | The network or proxy blocks the sending ports; switch proxy or network under **Settings → Mail → Network proxy**                                   |
| Gmail does not arrive in mainland China                            | Turn on the system proxy in your proxy software and keep **Network proxy** on **System**; or switch to **Manual** and enter the proxy address      |
| A warning icon next to the account name                            | Click it to open the account settings: if the password has expired, enter the app password again; for Outlook, click **Sign in again**             |
| The password must be entered again after a restart                 | This computer has no usable system keychain, so the password is kept in memory only                                                                |
| The AI says the message is written, but the recipient never got it | The account is set to **Ask me every time**; go to **Waiting for you** and click Send                                                              |
| The AI says in a task that it cannot use the mailbox               | Check in the account settings whether the current space is allowed to use this mailbox                                                             |
| You want to see what the AI has sent                               | **Settings → Mail → Send log**, or the AI marks in **Sent**                                                                                        |
| You no longer want the AI to send automatically                    | Right-click **Mail** in the icon rail and choose **Switch all accounts back to "Ask me every time"**                                               |
| No system notification for new mail                                | Check whether **Settings → General → Task notifications** is on; you are not alerted while you are looking at the Mail page                        |
| All mailboxes are gone after switching accounts                    | Mail accounts belong to the signed-in account; switch back to the original account and they are there                                              |
| The Sprite does not tell you about new mail                        | Check whether **Settings → Sprite → Tell me about important mail** is on, and whether the account settings allow the **Sprite** to use the mailbox |
