> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/advocate-program-settings/set-up-an-advocate-smtp-email-integration.md).

# 设置 Advocate SMTP 邮件集成

要管理通知邮件，您可以自行搭建简单邮件传输协议（SMTP）服务器并禁用 Advocate 的邮件通知，或者使用 Advocate 内置服务并使用自定义 *发件人* 地址，方法是 [配置自定义域名](/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/set-up-a-domain-for-advocate.md) 用于您的邮件。

#### 通知邮件类型

配置 [程序规则](/brand/zh/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/advocate-program-rules-explained.md) 时，可使用两种操作来触发邮件：

* **邮件操作：** 当在程序规则中触发邮件规则时，此操作会发送一封邮件。
* **奖励：** 当根据被触发的规则创建奖励时，也会触发一封邮件。

此外，某些邮件还可因以下原因触发：

* **验证邮件：** 供 microsite 和小部件使用，以验证用户提供的电子邮件地址是否有效。
* **密码重置：** 供 microsite 用于重置用户密码。
* **W9 通知：** 由程序用于表明用户在一个日历年内获得的奖励超过 599 美元，需要提供 W9 表格。
* **付款提醒邮件：** 发送给已获得现金奖励并需要返回小部件或 microsite 以提供税务和银行信息的用户。

#### 将 SMTP 服务器连接到您的程序

{% hint style="warning" %}
**重要：** 当您使用自定义 SMTP 服务器时，您有责任确保您的自定义 SMTP 服务器能够对您选择的 *发件人* 域进行适当的邮件身份验证，以避免邮件被放入收件人的垃圾邮件文件夹，或根本无法送达。
{% endhint %}

1. 从左侧导航菜单中，选择 ![](/files/7e98afd4e334c165e5d5781599a29836d600e210) **\[用户资料]** → **设置**.
2. 在下面左侧栏中的 *Advocate 设置*下，选择 **集成**.
3. 导航至 *自定义 SMTP 邮件服务器*下，选择 ![](/files/724207cd384cb04254f395812b496d20a45599e8) **\[展开]** 展开该部分，并输入您的 SMTP 服务器详细信息。所需字段包括：
   * **SMTP 服务器主机名和端口：** 用于发送邮件的外发邮件服务器地址和端口。
   * **身份验证方法：** 选项包括 *无*, *传输层安全（TLS）*，以及 *安全套接层（SSL）*.
   * **测试连接的发件地址** (*（可选）*：提供一个 *发件人* 电子邮件地址来测试您的 SMTP 服务器。
   * **用户名和密码：** 即您登录所选账户电子邮件地址时使用的用户名和密码。
4. 选择 **连接** 以将 SMTP 服务器连接到您的程序。
5. 启用后，您可以发送测试以确保连接已正确设置。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/advocate-program-settings/set-up-an-advocate-smtp-email-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
