DownloadEmail
Downloads the full contents of an email message, including metadata and body content.
Input
| Name | Type | Required | Accepts Output Streams | Description |
| MessageId | String | True | False | Identifier of the email message to be downloaded. |
| DownloadTo | String | False | False | Destination file path where the downloaded email is saved. If not provided, the email content is returned as output. |
| Encoding | String | False | False | Specifies the encoding format used for the FileData input, such as Base64.
The allowed values are NONE, BASE64. The default value is BASE64. |
| FileStream | String | False | True | Output stream to which the email content is written. Used only if DownloadTo is not specified. |
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. |