Skip to main content

Save email as EML

Save a complete Gmail message, with attachments, as an .eml file that mail programs can open.

Command in the Google Workspace toolkit · id ooa.google/gmail_save_message_as_eml · 5 inputs (3 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Message IDStringYesGmail message id from List Gmail messages.
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.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
pathFileSaved local path.