MCP Server for Microsoft Office 365

Build 25.0.9440

DownloadEmail

Downloads the full contents of an email message, including metadata and body content.

Input

Name Type Required Description
MessageId String True Identifier of the email message to be downloaded.
DownloadTo String False Destination file path where the downloaded email is saved. If not provided, the email content is returned as output.
Encoding String False Specifies the encoding format used for the FileData input, such as Base64.

The allowed values are NONE, BASE64.

The default value is BASE64.

Result Set Columns

Name Type Description
Status String Indicates whether the stored procedure completed successfully or returned an error.
FileData String Encoded content of the downloaded email, returned when DownloadTo and FileStream are not specified.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9440