# 发送邮件流程区块

**发送邮件**流程区块可让你在对话流程中自动向客户发送邮件，适用于发送确认通知、提醒或跟进信息，无需人工操作。

***

### 🔧 使用场景

你可以在以下情况使用此功能：

* 对话后发送跟进内容
* 根据客户行为自动触发通知
* 发送预约或报名确认
* 提供订单或付款信息

***

<figure><img src="/files/kDNSrRn4o8mPkMitQRRD" alt="" width="278"><figcaption></figcaption></figure>

### ⚙️ 设置步骤

#### 1. 添加收件人

* 在**收件人**字段输入邮箱地址
* 支持多个收件人，使用：`,`

**示例：**

```
user1@email.com, user2@email.com
```

***

#### 2. 设置邮件内容

* **主题**：输入邮件标题
* **内容**：输入邮件内容（纯文本）

💡 如支持，可使用动态变量进行个性化。

***

#### 3. 配置 SMTP

需要通过 SMTP 连接你的邮件服务提供商。

| 字段      | 说明                                |
| ------- | --------------------------------- |
| SMTP 主机 | 邮件服务的 SMTP 服务器（例如 smtp.gmail.com） |
| 端口      | 常用为 `587`（TLS）或 `465`（SSL）        |
| 使用 TLS  | 如需安全连接，请开启                        |
| 用户名     | SMTP 用户名（通常为邮箱地址）                 |
| 密码      | SMTP 密码或应用专用密码                    |

💡 请向你的邮件服务提供商确认具体配置。

***

#### 4. 设置发件人

* 在**发件人**字段填写发件人名称和邮箱
* 格式：

```
名称 <email@domain.com>
```

**示例：**

```
客服团队 <support@company.com>
```

***

#### 5. 处理发送结果

该区块包含两个分支：

* **成功**：邮件发送成功 → 继续流程
* **失败**：发送失败 → 可设置重试或通知客服

***

### ⚠️ 注意事项

* 请确保 SMTP 配置正确，否则邮件无法发送
* 部分服务需要使用“应用专用密码”
* 如果 **发件人 地址与 SMTP 账号不一致**，可能导致发送失败或进入垃圾邮箱
* 建议上线前进行测试

***

### 🚨 常见问题

| 问题       | 可能原因          |
| -------- | ------------- |
| 无法发送邮件   | SMTP 配置错误     |
| 验证失败     | 账号或密码错误       |
| 被判定为垃圾邮件 | 发件人未验证或域名信任度低 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chatalog.ai/zh-cn/crm-quickstarts/customized-flow/send-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
