> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Microsoft Mail connector

- Connector: `appmixer.microsoft.mail`
- Version: 2.3.0
- Components: 18 (3 triggers, 15 actions)

Supports sending, recieving, reading, listing emails from your Microsoft account.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/microsoft/mail>
- Download package: <https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/download>

## Authentication

**Type:** OAuth 2

**Scopes:**

- `offline_access`
- `user.read`

## Triggers (3)

- [Deleted Email](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.DeletedEmail.md) (`appmixer.microsoft.mail.DeletedEmail`): Watch your Inbox for deleted messages. Additional scopes: `Mail.Read`.
- [New Email](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.NewEmail.md) (`appmixer.microsoft.mail.NewEmail`): Watch your Inbox for new messages. Additional scopes: `Mail.Read`.
- [Updated Email](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.UpdatedEmail.md) (`appmixer.microsoft.mail.UpdatedEmail`): Watch your Inbox for any updates to your messages. Additional scopes: `Mail.Read`.

## Actions (15)

- [Add Attachment](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.AddAttachment.md) (`appmixer.microsoft.mail.AddAttachment`): Adds a file attachment to a draft email message. Files of 3 MB and more are uploaded in chunks; the maximum size is 150 MB. Additional scopes: `Mail.ReadWrite`.
- [Create Draft](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.CreateDraft.md) (`appmixer.microsoft.mail.CreateDraft`): Create a draft email. Additional scopes: `Mail.ReadWrite`.
- [Delete Email](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.DeleteEmail.md) (`appmixer.microsoft.mail.DeleteEmail`): Deletes an email message. The message is moved to the Deleted Items folder. Additional scopes: `Mail.ReadWrite`.
- [Download Attachment](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.DownloadAttachment.md) (`appmixer.microsoft.mail.DownloadAttachment`): Download a message attachment. Additional scopes: `Mail.Read`.
- [Get Attachments Metadata](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.GetAttachments.md) (`appmixer.microsoft.mail.GetAttachments`): Get message attachments metadata only (id, name, content type, size, etc.). The binary content is not included — use the Download Attachment component to download the content. Output Type selects between one message holding a Result array of every attachment, and one message per attachment. Additional scopes: `Mail.Read`.
- [Get Email](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.GetEmail.md) (`appmixer.microsoft.mail.GetEmail`): Retrieves an email from your Outlook. Additional scopes: `Mail.Read`.
- [List Categories](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.ListCategories.md) (`appmixer.microsoft.mail.ListCategories`): Retrieves all categories in mailbox. Additional scopes: `MailboxSettings.Read`.
- [List Emails](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.ListEmails.md) (`appmixer.microsoft.mail.ListEmails`): Retrieves all emails from your Outlook. Additional scopes: `Mail.Read`.
- [List Folders](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.ListFolders.md) (`appmixer.microsoft.mail.ListFolders`): Retrieves all folders in mailbox. Additional scopes: `MailboxSettings.Read`.
- [Make Api Call](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.MakeApiCall.md) (`appmixer.microsoft.mail.MakeApiCall`): Generic method for making API calls to a 3rd party service. Additional scopes: `Mail.ReadWrite`, `Mail.Send`, `MailboxSettings.Read`.
- [Mark Email As Read](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.MarkEmailAsRead.md) (`appmixer.microsoft.mail.MarkEmailAsRead`): Marks an email or draft as read. Additional scopes: `Mail.ReadWrite`.
- [Mark Email As Unread](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.MarkEmailAsUnread.md) (`appmixer.microsoft.mail.MarkEmailAsUnread`): Marks an email or draft as unread. Additional scopes: `Mail.ReadWrite`.
- [Move Mail](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.MoveMail.md) (`appmixer.microsoft.mail.MoveMail`): Moves an email message to another folder. Additional scopes: `Mail.ReadWrite`.
- [Send Email](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.SendEmail.md) (`appmixer.microsoft.mail.SendEmail`): Send a new email. Additional scopes: `Mail.Send`, `Mail.ReadWrite`.
- [Update Category](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.UpdateCategory.md) (`appmixer.microsoft.mail.UpdateCategory`): Updates the categories assigned to an email in your mailbox. Additional scopes: `Mail.ReadWrite`.

## Changelog

### 2.3.0

- New Delete Email component: deletes a message (moves it to the Deleted Items folder).
- New Add Attachment component: adds a file from the Appmixer file storage to a draft message. Files of 3 MB and more are uploaded in chunks through an upload session, up to the 150 MB Microsoft Graph limit.

### 2.2.3

- MakeApiCall: Request Headers and Query Parameters set in the Designer are now sent. They were silently dropped: the key-value field stores its rows as a JSON object string, which the component did not parse.

### 2.2.2

- CreateDraft, GetEmail, MarkEmailAsRead, MarkEmailAsUnread, MoveMail and SendEmail now stop with a clear error when a required input is missing instead of calling the API; added output examples.

### 2.2.1

- Added output schemas with examples to NewEmail, UpdatedEmail, DeletedEmail, ListCategories, ListFolders and UpdateCategory.

### 2.2.0

- Get Attachments Metadata: the attachment's OData type is now available on the output. Microsoft Graph always returns it, but it was not declared, so flows could not read it. Only a file attachment can be downloaded — a reference attachment (a link to OneDrive or SharePoint) has no downloadable content — so a flow can now check the type before calling Download Attachment instead of failing there.

### 2.1.0

- Get Attachments Metadata: the 'All attachments at once' output type now works. It previously sent a bare array that downstream components resolved to nothing, so any field mapped from it stayed empty. It now sends a Result array of the attachments together with their Items Count. Flows already using this output type have to re-pick the value from the variable picker (Result / Items Count).
- Get Attachments Metadata: the 'One attachment at a time' output type now adds Current Item Index and Items Count to every emitted attachment, so a downstream branch can tell the attachments of one message apart.
- Download Attachment: a missing Message ID or Attachment ID now fails with a clear message instead of a raw Microsoft Graph error.
- List Emails: no longer fails on an empty mailbox — every output type used to throw while building the CSV header from the first record, even when no CSV was being produced.
- List Emails: an unrecognized Output Type now reports an error instead of silently sending nothing, which left the branch below the component quietly unexecuted.

### 2.0.1

- Failed Microsoft Graph requests now surface the Graph error code, message and request-id instead of only the bare HTTP status code.

### 2.0.0

- BREAKING: GetAttachments (relabeled 'Get Attachments Metadata') now returns attachment metadata only (id, name, contentType, size, isInline, lastModifiedDateTime). The contentBytes, contentId and contentLocation fields are no longer included in the output — to get the attachment content, call the Download Attachment component instead.

### 1.6.0

- Added MakeApiCall component for performing arbitrary authorized API calls to the Microsoft Graph (Mail) API.

### 1.5.0

- Added test() (Flow Test Mode) to the NewEmail, UpdatedEmail, and DeletedEmail triggers.

### 1.4.2

- Added output examples to component schemas.

### 1.4.1

- The authentication flow now displays an account selection screen.

### 1.4.0

- Implemented multiselect input normalization for categories field in UpdateCategory component.

### 1.3.5

- SendEmail: trim email address before sending.

### 1.3.4

- Fixed a bug in trigger DeletedEmail.

### 1.3.3

- Connection can now be created with custom tenant. To see the option while creating the connection, in the Admin -> Connector Configuration add configuration 'appmixer:microsoft' and inside it, add item 'microsoftTenant' and set its value to true.

### 1.3.2

- Fixed an issue where downloading attachments would fail for JSON files.

### 1.3.1

- Fix for possible connection with empty label.

### 1.3.0

- Added a new component CreateDraft.

### 1.2.3

- Updated tooltip text in MoveMail

### 1.2.2

- Fix an issue with renewing subscribtions in NewEmail, UpdatedEmails, and DeletedEmail

### 1.2.1

- Update tooltips for ListEmails, MarkEmailAsRead, MarkEmailAsUnread.

### 1.2.0

- Added new components to appmixer.microsoft.mail.

### 1.0.0

- Initial version.
