Save a draft
save_draftSave an email draft to the Drafts folder for later review without sending, enabling safe message preparation even when sending is disabled.
Instructions
Write a message to the Drafts folder without sending it.
This is the safe way to prepare mail: the user opens their own mail client, reviews it, and sends it themselves. It works even when EMAIL_ALLOW_SEND is false, because nothing leaves the account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Cc recipients. | |
| to | No | Intended recipients. | |
| bcc | No | Bcc recipients. | |
| body | Yes | Plain-text body. | |
| html | No | Optional HTML alternative. | |
| subject | Yes | Subject line. | |
| attachments | No | Filenames inside the server's attachment directory. | |
| reply_to_uid | No | UID of a message this draft replies to. | |
| reply_to_folder | No | Folder holding the message being replied to. | INBOX |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | Folder the draft was appended to. | |
| subject | No | ||
| message_id | Yes |