JMAP icon

JMAP

Interact with JMAP email servers (Apache James, Twake Mail, etc.)

Email → Create Draft

AI-generated

Summary

Create a draft email in the user's drafts mailbox without sending it.

Inputs

  • Authentication — Choose the authentication method to connect to the JMAP server: OAuth2, Basic Auth, or Bearer Token.
  • To (required) — Comma-separated recipient email addresses for the draft.
  • Subject (required) — Subject line of the draft email.
  • Email Type — Format of the email body, either plain text or HTML (default is text).
  • Message (required) — The content of the email body.
  • Options — Optional CC and BCC recipient email addresses, comma-separated.

Output shape

a single JSON object representing the created draft email including its properties

The output includes the draft email's fields such as id and mailbox assignment. The draft is saved in the user's 'Drafts' mailbox with the draft keyword set. Errors are thrown if the drafts mailbox cannot be found or if the JMAP request fails.

Links

Discussion