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

# SendGrid

> メールを送信するようにSendGridフローアクションを構成する方法を説明します。

<div id="configure-your-vault-connection">
  ## Vault接続を構成する
</div>

SendGridアクションのVault接続を構成するには、 **API key（APIキー）** が必要です。

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/pd2Xk6Hu-Ldfi_VV/docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?fit=max&auto=format&n=pd2Xk6Hu-Ldfi_VV&q=85&s=77ed4d0cc62de7d942fba4d5e2a9013c" alt="Dashboard > Actions > Forms > Flows > actions > SendGrid" data-og-width="1404" width="1404" data-og-height="545" height="545" data-path="docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/generaltranslationinc/pd2Xk6Hu-Ldfi_VV/docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=280&fit=max&auto=format&n=pd2Xk6Hu-Ldfi_VV&q=85&s=592d46adb309fb2eea7caa3d860ad0e9 280w, https://mintcdn.com/generaltranslationinc/pd2Xk6Hu-Ldfi_VV/docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=560&fit=max&auto=format&n=pd2Xk6Hu-Ldfi_VV&q=85&s=8106db3206b48f402e74c55a73fc7b6f 560w, https://mintcdn.com/generaltranslationinc/pd2Xk6Hu-Ldfi_VV/docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=840&fit=max&auto=format&n=pd2Xk6Hu-Ldfi_VV&q=85&s=926c61feca09467c7175e72fc035c72f 840w, https://mintcdn.com/generaltranslationinc/pd2Xk6Hu-Ldfi_VV/docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1100&fit=max&auto=format&n=pd2Xk6Hu-Ldfi_VV&q=85&s=c8c9f35b62b366885be418f543dc43ef 1100w, https://mintcdn.com/generaltranslationinc/pd2Xk6Hu-Ldfi_VV/docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1650&fit=max&auto=format&n=pd2Xk6Hu-Ldfi_VV&q=85&s=dc23894f11130965a4827511cdda17bd 1650w, https://mintcdn.com/generaltranslationinc/pd2Xk6Hu-Ldfi_VV/docs/images/ja-jp/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=2500&fit=max&auto=format&n=pd2Xk6Hu-Ldfi_VV&q=85&s=c1212099ab51e628ec9523e2e0469918 2500w" />
</Frame>

これは、[SendGridダッシュボード](https://app.sendgrid.com/settings/api_keys)の設定ページのAPIキーにあります。

<div id="send-email">
  ## メールを送信する
</div>

SendGridをメールプロバイダーとして使用してメールを送信します。

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/JoMgZsgQxj2_Gov3/docs/images/ja-jp/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png?fit=max&auto=format&n=JoMgZsgQxj2_Gov3&q=85&s=e0c0a475eb7deda7922697388739b2d0" alt="" width="1398" height="1229" data-path="docs/images/ja-jp/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>パラメーター</b></th>
      <th><b>説明</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Sender name（差出人名）</td>
      <td>差出人の名前です</td>
    </tr>

    <tr>
      <td>Sender email (required)（差出人のメール（必須））</td>
      <td>差出人のメールです</td>
    </tr>

    <tr>
      <td>Recipient name（宛先名）</td>
      <td>宛先の名前です</td>
    </tr>

    <tr>
      <td>Recipient email (required)（宛先のメール（必須））</td>
      <td>宛先のメールです</td>
    </tr>

    <tr>
      <td>Subject (required)（件名（必須））</td>
      <td>メールの件名です</td>
    </tr>

    <tr>
      <td>Email type (required)（メールの種類（必須））</td>
      <td>HTMLコンテンツまたは保存済みのテンプレート（任意）を使ってメールを送信します</td>
    </tr>

    <tr>
      <td>Message (required)（メッセージ（必須））</td>
      <td>HTML形式またはテンプレート（任意）のメッセージです。</td>
    </tr>

    <tr>
      <td>Template ID (optional)（テンプレートID（任意））</td>
      <td>テンプレートを使用する場合、IDは<a href="https://mc.sendgrid.com/dynamic-templates">SendGridのダッシュボード</a>で確認できます。</td>
    </tr>

    <tr>
      <td>Custom variables (optional)（カスタム変数（任意））</td>
      <td>テンプレートに挿入するカスタム変数を追加します。 </td>
    </tr>
  </tbody>
</table>

<div id="output-object">
  ### 出力設定
</div>

予期される応答とステータスコードは、[SendGridのドキュメント](https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send)で確認できます。
