Gmail 节点草稿操作#
¥Gmail node Draft Operations
使用 Draft 操作在 Gmail 中创建、删除或获取草稿,或列出草稿。有关 Gmail 节点本身的更多信息,请参阅 Gmail 节点。
¥Use the Draft operations to create, delete, or get a draft or list drafts in Gmail. Refer to the Gmail node for more information on the Gmail node itself.
创建草稿#
¥Create a draft
使用此操作创建新的草稿。
¥Use this operation to create a new draft.
请输入以下参数:
¥Enter these parameters:
- 选择要连接的凭据或创建新凭据。
¥Select the Credential to connect with or create a new one.
- 资源:选择“草稿”。
¥Resource: Select Draft.
- 操作:选择“创建”。
¥Operation: Select Create.
- 主题:输入主题。
¥Subject: Enter the subject line.
- 选择电子邮件类型。选择文本或 HTML 格式。
¥Select the Email Type. Choose from Text or HTML.
- 消息:输入邮件正文。
¥Message: Enter the email message body.
创建草稿选项#
¥Create draft options
使用这些选项来进一步细化节点的行为:
¥Use these options to further refine the node's behavior:
- 附件:选择添加附件以添加附件。输入附件字段名称(在“输入”中),以标识输入节点中的哪个字段包含附件。
¥Attachments: Select Add Attachment to add an attachment. Enter the Attachment Field Name (in Input) to identify which field from the input node contains the attachment.
-
对于多个属性,请输入以逗号分隔的列表。
¥For multiple properties, enter a comma-separated list.
-
BCC:输入一个或多个密送收件人的电子邮件地址。用逗号分隔多个电子邮件地址,例如
jay@gatsby.com, jon@smith.com。
¥BCC: Enter one or more email addresses for blind copy recipients. Separate multiple email addresses with a comma, for example jay@gatsby.com, jon@smith.com.
- CC:输入一个或多个抄送收件人的电子邮件地址。用逗号分隔多个电子邮件地址,例如
jay@gatsby.com, jon@smith.com。
¥CC: Enter one or more email addresses for carbon copy recipients. Separate multiple email addresses with a comma, for example jay@gatsby.com, jon@smith.com.
- 通过别名或 ID:选择一个别名来发送草稿。此字段根据你在参数中选择的凭证填充。
¥From Alias Name or ID: Select an alias to send the draft from. This field populates based on the credential you selected in the parameters.
- 发送回复至:输入要设置为回复地址的电子邮件地址。
¥Send Replies To: Enter an email address to set as the reply to address.
- 线程 ID:如果你希望将此草稿附加到某个线程,请输入该线程的 ID。
¥Thread ID: If you want this draft attached to a thread, enter the ID for that thread.
- 发送至邮箱:输入一个或多个收件人的电子邮件地址。用逗号分隔多个电子邮件地址,例如
jay@gatsby.com, jon@smith.com。
¥To Email: Enter one or more email addresses for recipients. Separate multiple email addresses with a comma, for example jay@gatsby.com, jon@smith.com.
请参阅 Gmail API 方法:users.drafts.create 文档,了解更多信息。
¥Refer to the Gmail API Method: users.drafts.create documentation for more information.
删除草稿#
¥Delete a draft
使用此操作可删除草稿。
¥Use this operation to delete a draft.
请输入以下参数:
¥Enter these parameters:
- 选择要连接的凭据或创建新凭据。
¥Select the Credential to connect with or create a new one.
- 资源:选择“草稿”。
¥Resource: Select Draft.
- 操作:选择“删除”。
¥Operation: Select Delete.
- 草稿 ID:输入要删除的草稿的 ID。
¥Draft ID: Enter the ID of the draft you wish to delete.
请参阅 Gmail API 方法:users.drafts.delete 文档,了解更多信息。
¥Refer to the Gmail API Method: users.drafts.delete documentation for more information.
获取草稿#
¥Get a draft
使用此操作获取单个草稿。
¥Use this operation to get a single draft.
请输入以下参数:
¥Enter these parameters:
- 选择要连接的凭据或创建新凭据。
¥Select the Credential to connect with or create a new one.
- 资源:选择“草稿”。
¥Resource: Select Draft.
- 操作:选择“获取”。
¥Operation: Select Get.
- 草稿 ID:输入要获取信息的草稿的 ID。
¥Draft ID: Enter the ID of the draft you wish to get information about.
获取草稿选项#
¥Get draft options
使用这些选项来进一步细化节点的行为:
¥Use these options to further refine the node's behavior:
- 附件前缀:输入一个前缀,用于指定节点写入附件的二进制属性的名称。n8n 向前缀添加以
0开头的索引。例如,如果你输入“attachment_'作为前缀,第一个附件保存到'attachment_0”。
¥Attachment Prefix: Enter a prefix for the name of the binary property the node should write any attachments to. n8n adds an index starting with 0 to the prefix. For example, if you enter `attachment_' as the prefix, the first attachment saves to 'attachment_0'.
- 下载附件:选择节点是否下载草稿的附件(开启)或不下载(关闭)。
¥Download Attachments: Select whether the node should download the draft's attachments (turned on) or not (turned off).
请参阅 Gmail API 方法:users.drafts.get 文档,了解更多信息。
¥Refer to the Gmail API Method: users.drafts.get documentation for more information.
获取多个草稿#
¥Get Many drafts
使用此操作获取两个或多个草稿。
¥Use this operation to get two or more drafts.
请输入以下参数:
¥Enter these parameters:
- 选择要连接的凭据或创建新凭据。
¥Select the Credential to connect with or create a new one.
- 资源:选择“草稿”。
¥Resource: Select Draft.
- 操作:选择“获取多个”。
¥Operation: Select Get Many.
- 返回全部:选择节点是否返回所有草稿(已开启)或仅返回不超过设定限制的草稿(已关闭)。
¥Return All: Choose whether the node returns all drafts (turned on) or only up to a set limit (turned off).
- 限制:请输入要返回的最大草稿数。仅当你关闭“全部返回”时使用。
¥Limit: Enter the maximum number of drafts to return. Only used if you've turned off Return All.
获取多个草稿选项#
¥Get Many drafts options
使用这些选项来进一步细化节点的行为:
¥Use these options to further refine the node's behavior:
- 附件前缀:输入一个前缀,用于指定节点写入附件的二进制属性的名称。n8n 向前缀添加以
0开头的索引。例如,如果你输入“attachment_'作为前缀,第一个附件保存到'attachment_0”。
¥Attachment Prefix: Enter a prefix for the name of the binary property the node should write any attachments to. n8n adds an index starting with 0 to the prefix. For example, if you enter `attachment_' as the prefix, the first attachment saves to 'attachment_0'.
- 下载附件:选择节点是否下载草稿的附件(开启)或不下载(关闭)。
¥Download Attachments: Select whether the node should download the draft's attachments (turned on) or not (turned off).
- 包含垃圾邮件和已删除邮件:选择是否将节点的草稿放入垃圾邮件和已删除邮件文件夹(开启)或不放入(关闭)。
¥Include Spam and Trash: Select whether the node should get drafts in the Spam and Trash folders (turned on) or not (turned off).
请参阅 Gmail API 方法:users.drafts.list 文档,了解更多信息。
¥Refer to the Gmail API Method: users.drafts.list documentation for more information.
常见问题#
¥Common issues
有关常见错误或问题以及建议的解决方法,请参阅 常见问题。
¥For common errors or issues and suggested resolution steps, refer to Common Issues.