Actions13
Email → Create Draft
AI-generatedOverview
This node operation allows users to create an email draft in a specified mailbox using the IMAP protocol. It supports two input formats: individual email fields (such as subject, from, to, and text) or a complete RFC822 formatted email string. This functionality is useful for automating email draft creation in workflows, such as preparing emails for review before sending or saving email templates.
Use Case Examples
- Creating a draft email with specified subject, sender, recipient, and body text in the INBOX mailbox.
- Using an RFC822 formatted email string to create a complex draft with attachments and rich formatting.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects the type of credentials to use for IMAP authentication, either from this node or from an existing N8N IMAP Trigger node. |
| Mailbox | Specifies the mailbox where the draft email will be created. Can be selected from a list or provided as a full path. |
| Input Format | Determines the format of the email content input, either as separate fields or as a full RFC822 formatted email. |
| Subject | The subject line of the email draft. |
| From | The sender's email address for the draft. |
| To | The recipient's email address for the draft. |
| Text | The body text content of the email draft. |
| RFC822 Formatted Email | The full RFC822 formatted email content used when the input format is set to RFC822. |
Output
JSON
subject- The subject of the created draft email.from- The sender's email address of the draft.to- The recipient's email address of the draft.text- The text content of the draft email.rfc822- The full RFC822 formatted email content if provided.
Dependencies
- IMAP server credentials (either node-specific or from an N8N IMAP Trigger node)
Troubleshooting
- Connection failures due to incorrect IMAP credentials or server settings. Verify credentials and server details.
- Errors in email formatting when using the RFC822 input format. Ensure the email string is correctly formatted.
- Operation failures if the specified mailbox does not exist or is inaccessible. Confirm mailbox path or selection.