> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SparkPost をメールプロバイダーとして設定する

> Auth0 で SparkPost をメールプロバイダーとして設定する手順。

<div id="prerequisites">
  ## 前提条件
</div>

* [SparkPost](https://www.sparkpost.com/) のアカウントが必要です。

* 特定の [Auth0 IP アドレス](/docs/ja-jp/secure/security-guidance/data-security/allowlist) からの接続を許可するように、プロバイダーを設定する必要があります。

<div id="configure-sparkpost">
  ## SparkPost を設定する
</div>

1. [SparkPost](https://www.sparkpost.com/) アカウントにログインします。
2. SparkPost の [Sending Domains](https://app.sparkpost.com/account/sending-domains) に移動し、カスタムドメインを追加します。SparkPost では、検証済みドメインからのみメールを送信できます。
3. SparkPost の [Account API Keys](https://app.sparkpost.com/account/credentials) に移動し、**New API key** をクリックします。このキーの値を保存し、`Transmissions: Read/Write` アクセス権があることを確認して、その値をコピーします。
4. Auth0 の [Auth0 Dashboard > Branding > メールプロバイダー](https://manage.auth0.com/#/branding/email_provider) に移動します。
5. **Use my own email provider** トグルを有効化します。
6. **SparkPost** のロゴをクリックします。
7. **From** メールアドレスを入力し、先ほどコピーした SparkPost の **API Key** を入力して、**Region** を選択します。すでに US リージョン用に設定済みのアカウントで EU リージョンに変更する場合は、Auth0 の **API Key** を SparkPost の EU API Key に置き換える必要があります。
8. **Save** をクリックします。

<div id="send-a-test-email">
  ## テストメールを送信する
</div>

**テストメールを送信**ボタンを使用して、テストメールを送信します。設定が正しければ、確認メールが届きます。数分待ってもメールが届かない場合は、エラーコードがないか [Auth0ログ](https://manage.auth0.com/#/logs) を確認してください。

SparkPost に <Tooltip tip="カスタムドメイン: 特別な名前、またはバニティ名を持つサードパーティのドメイン。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=custom+domain">カスタムドメイン</Tooltip> をまだ登録していない場合は、`sparkpostbox.com` ドメインから送信できるテストメールは最大 5 通です。詳細については、SparkPost の [Transmissions: The Sandbox Domain](https://developers.sparkpost.com/api/transmissions.html#header-the-sandbox-domain) を参照してください。

設定が完了すると、SparkPost の [Message Events](https://app.sparkpost.com/reports/message-events) ページに、ユーザーに送信されたすべてのメールの配信状況に関する情報が表示されます。
