# Mail

> Connect your Gmail or Outlook account, then read, reply to and organise your mail in Deer, and turn any message into a task.

Source: https://docs.deerapp.co/en/workspace/mail/

## What Mail does

Mail brings your own Gmail or Outlook mailbox into Deer, next to your tasks, chat and meetings. You read, reply, forward, archive and star messages without leaving the workspace, and every change goes back to your mail provider.

Your mail stays yours. Only you see the messages from accounts you connect, in the workspace where you connected them. Other members, including owners and admins, do not see your mailbox.

> [!NOTE]
> Workspace owners and members can use Mail. Guests do not have access to Mail. An admin can change who has Mail access in the workspace permissions. See [Roles and permissions](https://docs.deerapp.co/en/admin/roles_and_permissions/).

## Connect Gmail or Outlook

Deer reads and sends mail through an account you connect. You can connect more than one account, for example a Gmail and an Outlook mailbox.

#### Open Integrations
Open **Integrations**. From Mail you can also select **Manage accounts**.

#### Choose Gmail or Outlook
Find **Gmail** or **Outlook** in the **App directory** and open it.

#### Connect the account
Select **Connect account**. A sign-in window from Google or Microsoft opens. Review the permissions it asks for and approve them.

#### Return to Deer
Finish in the browser, then come back to Deer. Deer checks that the connection completed on its own. To add a second mailbox, select **Connect another account**.

The connection uses only the permissions you approve, and it belongs to your account in this workspace. If the sheet shows **Account connections are currently unavailable for this app.**, the workspace cannot connect that provider yet.

> [!TIP]
> Approve access to your contacts when Google or Microsoft asks. Deer uses them to suggest recipients. If you connected without it, connect the account again and allow contact access.

## Read your mail

![The Mail reader showing a message with the To task button above it](https://deerapp.co/assets/shots2/mail_en_dark.png)

Mail syncs when you open the page, then every minute while the page is open and active. Select **Sync** to refresh now, or **Load older** to bring in earlier messages. If you connected several accounts, use the **Mail accounts** menu to show one account or **All mail accounts**.

The folder menu switches between **All mail**, **Inbox**, **Starred**, **Drafts**, **Sent**, **Archive**, **Spam** and **Trash**, and lists your labels. Above the list you can:

- Search with **Search mail…** by sender, subject, recipients or preview text.
- Show **All messages**, **Unread** or **Read**.
- Show only messages **With attachments**.
- Sort by **Newest first** or **Oldest first**.

Opening a message marks it as read. The reader shows the sender, the **To**, **Cc** and **Bcc** lines, and the account that received it.

### HTML mail

Formatted messages appear as the sender designed them, with their layout, colours, fonts and images. A layout wider than the reader is scaled down to fit. Deer isolates each message from the rest of the app:

- Scripts, forms and embedded frames are removed, and the message cannot run code.
- The sender's styles cannot change how Deer looks.
- Links open in a new tab, and Deer does not pass on the page you came from.

Plain-text messages appear as text.

### Attachments

Attachments are listed under the message. Select **Download** to save one. Images placed inside the body of a message are shown in place.

## Organise messages

The buttons above an open message, and the **Message options** menu, let you:

- **Archive** a message or **Move to trash**.
- **Star message** or **Unstar**.
- **Mark as read** or **Mark as unread**.
- **Move to inbox** or **Move to spam**.

Right-click a message in the list for the same commands. Each change is queued and then applied in your Gmail or Outlook account.

## Write, reply and forward

Select **Compose email** to write a new message. On an open message, select **Reply**, **Reply all** or **Forward**.

- **From** chooses the sending account. A reply always goes from the account that received the message, and stays in the same conversation.
- **To**, **Cc** and **Bcc** accept several addresses. Up to 50 recipients in total.
- **Attach files** adds up to 5 files, with a combined size of 2.5 MB.
- When you forward a message that has attachments, **Include original attachments** sends them along, within the same limit.
- Deer sends messages as plain text.

Select **Send**, or **Save draft** to store a draft in your mailbox. Deer does not save drafts automatically: the message stays in the composer until you send or save it.

After you send, Deer queues the request and shows its status. **Your mail provider accepted the message.** means it went out. If Deer shows **The result is uncertain. Check your mailbox before sending again to avoid duplicates.**, open your Sent folder before trying again.

## Contacts

As you type in **To**, **Cc** or **Bcc**, Deer suggests people from:

- the contacts in your connected Google or Outlook account,
- people you have exchanged mail with,
- members of your workspace.

Contacts refresh once a day during a normal mail sync. Deer reads up to 5,000 Google contacts or 2,500 Outlook contacts. If contacts cannot sync, the composer tells you so, and addresses from your messages remain available.

The message list and reader show a workspace member's photo or a Google contact photo when one exists, and initials otherwise.

## Turn mail into a task

![A message turned into a task](https://deerapp.co/assets/shots2/mod_mail_en_dark.png)

Select **To task** above an open message. The new task form opens with the subject as its title. Add an owner, a due date or more detail, then create the task. See [Tasks](https://docs.deerapp.co/en/workspace/tasks/).

## AI, MCP and approvals

In the current beta, AI cannot read, send or change your mail. Mail is not among the actions AI can use, and MCP clients cannot reach Mail either. Sending, replying and organising mail is done by you, in the interface.

The rule for the future is already built into every Mail action. Sending a message and changing a message in your mailbox are **External** actions. When anyone other than a person, such as an AI agent, an MCP client or an automation, asks to run an External action, it stops and waits for a person's approval. See [Approvals](https://docs.deerapp.co/en/ai/approvals/).

## Mail actions

Everything you do in Mail runs through these actions, with the same permission check and audit record.

| Action | What it does | Risk |
| --- | --- | --- |
| `mail.sync` | Refreshes mail and contacts from a connected account. | Read |
| `mail.refresh_message` | Fetches the original content of a message, including its HTML. | Read |
| `mail.list_attachments` | Lists the attachments of a message. | Read |
| `mail.download_attachment` | Downloads an attachment from your mail. | Read |
| `mail.update` | Marks a message read or unread, stars it, or moves it to Inbox, Archive, Trash or Spam. | External |
| `mail.send` | Sends a message, reply or forward, or saves a draft, from a connected account. | External |

Read actions need the `mail:read` permission. `mail.update` and `mail.send` need `mail:write`. See the [actions reference](https://docs.deerapp.co/en/developers/actions_reference/).

- [Integrations](https://docs.deerapp.co/en/connect/integrations/) Connect Gmail, Outlook and other apps.
- [Tasks](https://docs.deerapp.co/en/workspace/tasks/) Plan the work that comes out of your mail.
- [Approvals](https://docs.deerapp.co/en/ai/approvals/) How non-human actions wait for a person.
