> 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/ja/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の組み込みサービスをカスタム *差出人* アドレスで利用します。そのためには、 [カスタムドメインを設定](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/set-up-a-domain-for-advocate.md) してメールを送信します。

#### 通知メールの種類

メールを送信する [プログラムルール](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/getting-started-with-advocate/advocate-program-rules-explained.md) を設定する際に使用できるアクションは2つあります。

* **メールアクション：** プログラムルールでメールルールがトリガーされると、このアクションによってメールが送信されます。
* **報酬：** トリガーされたルールによって報酬が作成されると、メールも送信されます。

また、次の理由でもメールが送信される場合があります。

* **確認メール：** マイクロサイトやウィジェットで、ユーザーが入力したメールアドレスが有効かどうかを確認するために使用されます。
* **パスワードのリセット：** マイクロサイトでユーザーのパスワードをリセットするために使用されます。
* **W9通知：** 1暦年に報酬を599米ドル以上獲得したユーザーに、W9の提出が必要であることをプログラムから通知するために使用されます。
* **支払いリマインダーメール：** 現金報酬を獲得し、税務情報と銀行口座情報を入力するためにウィジェットまたはマイクロサイトに戻る必要があるユーザーに送信されます。

#### SMTPサーバーをプログラムに接続する

{% hint style="warning" %}
**重要：** カスタムSMTPサーバーを使用する場合、選択した *差出人* ドメインのメールが受信者の迷惑メールフォルダーに振り分けられたり、まったく届かなかったりしないよう、カスタムSMTPサーバーでメールを適切に認証できることを確認する責任があります。
{% endhint %}

1. 左側のナビゲーションメニューから ![](https://1458456015-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://1458456015-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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
