get_emails_content
Fetch the complete content and body of specific emails using their email IDs, obtained from listing metadata. Optionally mark them as read.
Instructions
Get the full content (including body) of one or more emails by their email_id. Use list_emails_metadata first to get the email_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_name | Yes | The name of the email account. | |
| email_ids | Yes | List of email_id to retrieve (obtained from list_emails_metadata). Can be a single email_id or multiple email_ids. | |
| mailbox | No | The mailbox to retrieve emails from. | INBOX |
| mark_as_read | No | If True, mark each successfully retrieved email as read. If marking fails, a warning is logged and retrieval still succeeds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emails | Yes | ||
| requested_count | Yes | ||
| retrieved_count | Yes | ||
| failed_ids | Yes |