> 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 邮件集成

要管理通知电子邮件，您可以自行搭建 Simple Mail Transfer Protocol（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. 从左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-b527686787b925f477dff4feb9be3a63f51250a7%2Fdcf31aa89710c2f91d880b79ce8d8c18489cd8cad334e5cd91dd7ee0372a44fd.svg?alt=media) **\[用户资料]** → **设置**.
2. 在下方左侧列中 *Advocate 设置*，选择 **集成**.
3. 导航到 *自定义 SMTP 电子邮件服务器*，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-3ca70a1ff22f0720bfb8c9e284c7d8178e3a547b%2Fb6a126b0775291b814c5a97f83039ef72ba42d6d02b0fe20f4790213ea01961e.svg?alt=media) **\[展开]** 展开该部分，并输入您的 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.
