imap_reply_to_email
Reply to an existing email by folder and UID, automatically addressing the original sender, adding "Re:" to the subject, and preserving thread context. Use replyAll to include original recipients.
Instructions
Reply to an existing email identified by folder + uid. Automatically sets the recipient to the original sender, prefixes the subject with "Re:", and preserves threading (In-Reply-To/References). Set replyAll to also include the original recipients. Use this instead of imap_send_email whenever the user is responding to a message already in a mailbox. Account defaultBcc addresses are always BCC'd when configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bcc | No | BCC recipients. Either an array of addresses or a single comma-separated string; merged with the account defaultBcc when set. | |
| uid | Yes | UID of the email to reply to | |
| body | No | Alias for 'text' (backward-compat) | |
| html | No | HTML reply content | |
| text | No | Plain text reply content | |
| folder | No | Folder containing the original email | INBOX |
| replyAll | No | Reply to all recipients | |
| accountId | No | Account ID (from imap_list_accounts). Optional if accountName is given or only one account is configured. | |
| accountName | No | Account name instead of accountId. Optional if accountId is given or only one account is configured. | |
| attachments | No | Email attachments |