Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
IDStringYesEmail id.
Local pathFileYesWhere to save the .eml file; a path ending in / or an existing folder gets a file named after the subject.
OverwriteBooleanNotrueReplace an existing file; when false a number such as (2) is added to the name.
MailboxStringNomeMailbox: me, or a user's email address (needs application permission).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
pathFileSaved local path.