# 發送電郵流程區塊

**發送電郵**流程區塊可讓你在對話流程中自動向客戶發送電郵，適用於發送確認通知、提醒或跟進資訊，無需人手操作。

***

### 🔧 使用情境

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

* 對話後發送跟進內容
* 根據客戶行為自動觸發通知
* 發送預約或報名確認
* 提供訂單或付款資訊

***

<figure><img src="/files/WLQ447UO5QarHKgkCgbO" alt="" width="283"><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-hk/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.
