发送电子邮件#
¥Send Email
“发送电子邮件”节点使用 SMTP 邮件服务器发送电子邮件。
¥The Send Email node sends emails using an SMTP email server.
节点参数#
¥Node parameters
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
使用以下参数配置此节点。
¥Configure this node using the following parameters.
用于连接的凭据#
¥Credential to connect with
选择或创建一个节点要使用的 SMTP 账户凭据。
¥Select or create an SMTP account credential for the node to use.
操作#
¥Operation
“发送电子邮件”节点支持以下操作:
¥The Send Email node supports the following operations:
- 发送:发送电子邮件。
¥Send: Send an email.
- 发送并等待回复:发送电子邮件并等待收件人回复。此操作会暂停工作流执行,直到用户提交响应。
¥Send and Wait for Response: Send an email and wait for a response from the receiver. This operation pauses the workflow execution until the user submits a response.
选择“发送并等待响应”将激活 等待响应 中讨论的参数和选项。
¥Choosing Send and Wait for Response will activate parameters and options as discussed in waiting for a response.
通过电子邮件#
¥From Email
请输入你希望发送邮件的电子邮件地址。你还可以使用以下格式包含名称:例如 Name Name <email@sample.com>:Nathan Doe <nate@n8n.io>。
¥Enter the email address you want to send the email from. You can also include a name using this format: Name Name <email@sample.com>, for example: Nathan Doe <nate@n8n.io>.
发送邮件#
¥To Email
请输入你希望接收邮件的电子邮件地址。你还可以使用以下格式包含名称:例如 Name Name <email@sample.com>:Nathan Doe <nate@n8n.io>。使用逗号分隔多个电子邮件地址。first@sample.com, "Name" <second@sample.com>。
¥Enter the email address you want to send the email to. You can also include a name using this format: Name Name <email@sample.com>, for example: Nathan Doe <nate@n8n.io>. Use a comma to separate multiple email addresses: first@sample.com, "Name" <second@sample.com>.
Email Format
此电子邮件格式也适用于抄送 (CC) 和密送 (BCC) 字段。
¥This email format also applies to the CC and BCC fields.
主题#
¥Subject
输入电子邮件的主题。
¥Enter the subject line for the email.
电子邮件格式#
¥Email Format
选择电子邮件的发送格式。此参数在使用“发送”操作时可用。选择以下选项:
¥Select the format to send the email in. This parameter is available when using the Send operation. Choose from:
- 文本:以纯文本格式发送电子邮件。
¥Text: Send the email in plain-text format.
- HTML:以 HTML 格式发送电子邮件。
¥HTML: Send the email in HTML format.
- 两者:以两种格式发送电子邮件。如果选择此选项,电子邮件收件人的客户端将设置要显示的格式。
¥Both: Send the email in both formats. If you choose this option, the email recipient's client will set which format to display.
节点选项#
¥Node options
使用这些选项进一步优化节点的行为。
¥Use these Options to further refine the node's behavior.
追加 n8n 归属#
¥Append n8n Attribution
设置是否在电子邮件末尾包含短语“This email was sent automatically with n8n”(已启用)或不包含(已禁用)。
¥Set whether to include the phrase This email was sent automatically with n8n at the end of the email (turned on) or not (turned off).
附件#
¥Attachments
请输入包含要添加为附件的数据的二进制属性的名称。使用此选项的一些提示:
¥Enter the name of the binary properties that contain data to add as an attachment. Some tips on using this option:
- 使用 从磁盘读取/写入文件 节点或 HTTP 请求 节点将文件上传到工作流。
¥Use the Read/Write Files from Disk node or the HTTP Request node to upload the file to your workflow.
- 通过输入以逗号分隔的二进制属性列表来添加多个附件。
¥Add multiple attachments by entering a comma-separated list of binary properties.
- 引用电子邮件正文中的嵌入式图片或其他内容,例如
<img src="cid:image_1">。
¥Reference embedded images or other content within the body of an email message, for example <img src="cid:image_1">.
抄送邮件#
¥CC Email
在 cc: 字段中输入电子邮件地址。
¥Enter an email address for the cc: field.
密送邮件#
¥BCC Email
在 bcc: 字段中输入电子邮件地址。
¥Enter an email address for the bcc: field.
忽略 SSL 问题#
¥Ignore SSL Issues
设置 n8n 是否应忽略 TLS/SSL 证书验证失败(启用)或强制执行(禁用)。
¥Set whether n8n should ignore failures with TLS/SSL certificate validation (turned on) or enforce them (turned off).
回复至#
¥Reply To
在“回复至”字段中输入电子邮件地址。
¥Enter an email address for the Reply To field.
等待响应#
¥Waiting for a response
选择“发送并等待响应”操作,你可以发送电子邮件并暂停工作流执行,直到有人确认操作或提供更多信息。
¥By choosing the Send and Wait for a Response operation, you can send an email message and pause the workflow execution until a person confirms the action or provides more information.
响应类型#
¥Response Type
你可以选择以下几种等待和审批操作:
¥You can choose between the following types of waiting and approval actions:
- 审批:用户可以在消息中批准或拒绝。
¥Approval: Users can approve or disapprove from within the message.
- 自由文本:用户可以使用表单提交回复。
¥Free Text: Users can submit a response with a form.
- 自定义表单:用户可以使用自定义表单提交回复。
¥Custom Form: Users can submit a response with a custom form.
根据你选择的类型,可用的选项有所不同。
¥Different options are available depending on which type you choose.
审批参数和选项#
¥Approval parameters and options
使用“审批”响应类型时,可以使用以下选项:
¥When using the Approval response type, the following options are available:
- 审批类型:是否仅显示批准按钮,还是同时显示批准和拒绝按钮。
¥Type of Approval: Whether to present only an approval button or both an approval and disapproval buttons.
- 按钮标签:批准或拒绝按钮的标签。默认批准和拒绝操作分别为
Approve和Decline。
¥Button Label: The label for the approval or disapproval button. The default choice is Approve and Decline for approval and disapproval actions respectively.
- 按钮样式:按钮的样式(主样式或辅助样式)。
¥Button Style: The style (primary or secondary) for the button.
此模式还提供以下选项:
¥This mode also offers the following options:
- 限制等待时间:工作流是否会在指定的时间限制后自动恢复执行。这可以是时间间隔或特定的运行时间。
¥Limit Wait Time: Whether the workflow will automatically resume execution after a specified time limit. This can be an interval or a specific wall time.
- 附加 n8n 归属:设置是否在电子邮件末尾包含短语“
This email was sent automatically with n8n”(已启用)或不包含(已禁用)。
¥Append n8n Attribution: Set whether to include the phrase This email was sent automatically with n8n at the end of the email (turned on) or not (turned off).
自由文本参数和选项#
¥Free Text parameters and options
使用“自由文本”响应类型时,可以使用以下选项:
¥When using the Free Text response type, the following options are available:
- 消息按钮标签:消息按钮的标签。默认选择
Respond。
¥Message Button Label: The label to use for message button. The default choice is Respond.
- 响应表单标题:用户提供响应的表单的标题。
¥Response Form Title: The title of the form where users provide their response.
- 响应表单描述:用户提供响应的表单描述。
¥Response Form Description: A description for the form where users provide their response.
- 响应表单按钮标签:表单上用于提交响应的按钮的标签。默认选择
Submit。
¥Response Form Button Label: The label for the button on the form to submit their response. The default choice is Submit.
- 限制等待时间:工作流是否会在指定的时间限制后自动恢复执行。这可以是时间间隔或特定的运行时间。
¥Limit Wait Time: Whether the workflow will automatically resume execution after a specified time limit. This can be an interval or a specific wall time.
- 附加 n8n 归属:设置是否在电子邮件末尾包含短语“
This email was sent automatically with n8n”(已启用)或不包含(已禁用)。
¥Append n8n Attribution: Set whether to include the phrase This email was sent automatically with n8n at the end of the email (turned on) or not (turned off).
自定义表单参数和选项#
¥Custom Form parameters and options
使用“自定义表单”响应类型时,你可以构建包含所需字段和选项的表单。
¥When using the Custom Form response type, you build a form using the fields and options you want.
你可以根据 n8n 表单触发器的表单元素 中概述的设置自定义每个表单元素。要添加更多字段,请选择“添加表单元素”按钮。
¥You can customize each form element with the settings outlined in the n8n Form trigger's form elements. To add more fields, select the Add Form Element button.
以下选项也可用:
¥The following options are also available:
- 消息按钮标签:消息按钮的标签。默认选择
Respond。
¥Message Button Label: The label to use for message button. The default choice is Respond.
- 响应表单标题:用户提供响应的表单的标题。
¥Response Form Title: The title of the form where users provide their response.
- 响应表单描述:用户提供响应的表单描述。
¥Response Form Description: A description for the form where users provide their response.
- 响应表单按钮标签:表单上用于提交响应的按钮的标签。默认选择
Submit。
¥Response Form Button Label: The label for the button on the form to submit their response. The default choice is Submit.
- 限制等待时间:工作流是否会在指定的时间限制后自动恢复执行。这可以是时间间隔或特定的运行时间。
¥Limit Wait Time: Whether the workflow will automatically resume execution after a specified time limit. This can be an interval or a specific wall time.
- 附加 n8n 归属:设置是否在电子邮件末尾包含短语“
This email was sent automatically with n8n”(已启用)或不包含(已禁用)。
¥Append n8n Attribution: Set whether to include the phrase This email was sent automatically with n8n at the end of the email (turned on) or not (turned off).
模板和示例#
¥Templates and examples