> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/ja/she-ding/overleaf-toolkit/email-delivery.md).

# メール配信

Overleaf では、メール送信に 2 つの方法をサポートしています。Simple Mail Transfer Protocol (SMTP) と [Amazon Simple Email Service (SES)](https://aws.amazon.com/ses/)。SMTP は、localhost 上で有効になっていてローカル接続を待ち受けているメールサーバーがある場合に使用できます。

## 設定

メールは以下の環境変数を使用して設定します。

#### 送信者の設定

| 名前                            | 説明                                                                                                                                  |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_FROM_ADDRESS` | <p>差出人アドレス。例: <a href="mailto:support@mycompany.com"><code>'<support@mycompany.com>'</code></a><br><br>- <strong>必須</strong>：はい</p> |
| `OVERLEAF_EMAIL_REPLY_TO`     | 返信先アドレス。例: `'noreply@mycompany.com'`                                                                                                |

#### SMTP

| 名前                                      | 説明                                                                                                                                                                                                   |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST`              | 接続先のホスト名または IP アドレス。Docker コンテナからアクセス可能である必要があります                                                                                                                                                    |
| `OVERLEAF_EMAIL_SMTP_PORT`              | 接続先のポート                                                                                                                                                                                              |
| `OVERLEAF_EMAIL_SMTP_SECURE`            | もし `true` 接続は、サーバーに接続する際に TLS を使用します。もし `false` または未設定の場合、サーバーが次のものをサポートしていれば TLS が使用されます `STARTTLS` 拡張機能です。ほとんどの場合、この値は次のように設定します `true` ポートに接続する場合は `465`。ポート `587` または `25` の場合は、そのままにします `false` |
| `OVERLEAF_EMAIL_SMTP_USER`              | SMTP サーバーへの認証に使用するユーザー名                                                                                                                                                                              |
| `OVERLEAF_EMAIL_SMTP_PASS`              | SMTP ユーザー名に関連付けられたパスワード                                                                                                                                                                              |
| `OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH` | もし `false` これを有効にすると、自己署名または無効な TLS 証明書を持つ TLS サーバーへの接続が開かれます                                                                                                                                        |
| `OVERLEAF_EMAIL_SMTP_IGNORE_TLS`        | これが `true` および `OVERLEAF_EMAIL_SMTP_SECURE` である場合 `false` 、サーバーが次をサポートしていても TLS は使用されません `STARTTLS` 拡張機能                                                                                             |
| `OVERLEAF_EMAIL_SMTP_NAME`              | 次の場合の TLS 検証用の任意のホスト名 `OVERLEAF_EMAIL_SMTP_HOST` が IP アドレスに設定されている場合。既定値はマシンのホスト名です。                                                                                                                 |
| `OVERLEAF_EMAIL_SMTP_LOGGER`            | これが `true` ログメッセージを次に出力します `web.log`.                                                                                                                                                                |

#### Amazon SES SMTP インターフェース

Amazon SES SMTP インターフェースを使用してメールを送信する方法の詳細はこちら [こちら](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html).

| 名前                         | 説明                                                |
| -------------------------- | ------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST` | 接続先のホスト名または IP アドレス。Docker コンテナからアクセス可能である必要があります |
| `OVERLEAF_EMAIL_SMTP_PORT` | 接続先のポート                                           |
| `OVERLEAF_EMAIL_SMTP_USER` | SMTP サーバーへの認証に使用するユーザー名                           |
| `OVERLEAF_EMAIL_SMTP_PASS` | SMTP ユーザー名に関連付けられたパスワード                           |

#### Amazon SES API

Amazon SES API を使用してメールを送信する方法の詳細はこちら [こちら](https://docs.aws.amazon.com/ses/latest/dg/send-email-api.html).

| 名前                                     | 説明                              |
| -------------------------------------- | ------------------------------- |
| `OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID` | AWS SES を使用する場合のアクセスキー          |
| `OVERLEAF_EMAIL_AWS_SES_SECRET_KEY`    | AWS SES を使用する場合のシークレットキー        |
| `OVERLEAF_EMAIL_AWS_SES_REGION`        | 未設定の場合、デフォルトリージョンは US-EAST-1 です |

#### インスタンスロールを使用する AWS SES

| 名前                      | 説明                                                                         |
| ----------------------- | -------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_DRIVER` | これを次のように設定すると `ses`、メールシステムは SES API の方式を使用し、設定済みのインスタンスロールを利用してメールを送信します。 |

#### カスタマイズ

| 名前                             | 説明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_CUSTOM_EMAIL_FOOTER` | <p>すべてのメールに追加されるカスタム HTML。例:<br><br><strong>例</strong>: <code>"\<div>このシステムは x 部門によって運用されています \</div> \<div> ご質問がある場合は、FAQ をご覧ください \<a href='</code><a href="https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/https:/somwhere.com&#x27;%3Ehere&#x26;#x3C;/a%3E&#x26;#x3C;/div%3E"><code>[https://somwhere.com'>こちら\&#x26;#x3C;/a>\&#x26;#x3C;/div>](https://ayakaleaf-pro.ayaka.space/on-premises/ja/she-ding/overleaf-toolkit/https:/somwhere.com'>こちら\&#x26;#x3C;/a>\&#x26;#x3C;/div>)</code></a><code>"</code></p> |


---

# 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://ayakaleaf-pro.ayaka.space/on-premises/ja/she-ding/overleaf-toolkit/email-delivery.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.
