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.
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
Mail is on the icon rail below the Sprite (the envelope icon). Before you add any account, the Mail page looks like this:

The Mail page has three columns:
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).
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.

- 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).
- 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.
- 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.
- 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):
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:
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:
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.
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:
- 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.
- 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."
- 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 and Computer Use).
Inbox and folders
Once you have added accounts, the left column of the Mail page lists each account and its 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
Click a message to show its body in the right column; it is marked as read at the same time. Along the top:
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

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
Click New message in the left column, or Reply, Reply all or Forward while reading, to open the compose panel:

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).
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 and Spaces, Appearance and General Settings).
Mail does not go into Notifications (Cron Jobs and Notifications); 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:

Hand to AI
When you read a message that needs handling, click Hand to AI at the top right:
- 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:".
- 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".
- Click Send. The AI first reads the message, then does what you asked.

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).
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), 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.
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:

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
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:

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.
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).
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).
In a space that is not allowed, tasks cannot use this mailbox at all.
Waiting for you

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:
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.

Messages you write yourself have no mark.
Settings → Mail
Settings → Mail (in the Integrations group of the settings navigation, below Sprite) is where you manage mail accounts and AI sending:

Account settings
The items in the account settings dialog:
Network proxy
Choose which proxy the mail connections use under Network proxy:
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
Once the Sprite is activated (Sprite), it can keep an eye on new mail for you. Open Settings → Sprite and find the Mail group:

- 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);
- 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) 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 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.
