Skip to main content

Save email as .msg

Save an email, with its recipients, HTML body and attachments, as an Outlook .msg file.

Command in the Email toolkit · id ooa.email/save_email_as_msg · 6 inputs, 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
IDNumberNoEmail id from Find emails; empty inside an Each email loop = the loop's current email.
Local pathFileNoFolder or file to save into (a path ending in / or \ is a folder); empty = a temporary file of this run. In a folder the file is named after the subject (or file name); the step gives the path. Saves the .msg file.
FolderStringNoINBOXMail folder.
OverwriteBooleanNotrueReplace an existing file; when false a number such as (2) is added to the name.
SessionStringNomailSession name of the open mailbox.
File nameStringNoName of the file in the folder; the email's subject when empty.

Outputs​

OutputTypeWhat it is
pathFileSaved local path.
attachmentsNumberNumber of attachments saved in the file.