Save email as EML
Save a complete email, including attachments, as a standard .eml file.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/save_mail_as_eml · 6 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| ID | String | Yes | Email id. | |
| Local path | File | Yes | Where to save the .eml file; a path ending in / or an existing folder gets a file named after the subject. | |
| Overwrite | Boolean | No | true | Replace an existing file; when false a number such as (2) is added to the name. |
| Mailbox | String | No | me | Mailbox: me, or a user's email address (needs application permission). |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | Saved local path. |