> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-pro.ayaka.space/on-premises/fi/maaritys/overleaf-toolkit/email-delivery.md).

# Sähköpostin toimitus

Overleaf tukee sähköpostin lähettämistä kahdella menetelmällä: Simple Mail Transfer Protocol (SMTP) ja [Amazon Simple Email Service (SES)](https://aws.amazon.com/ses/). SMTP:tä voidaan käyttää, jos localhostissa on käytössä sähköpostipalvelin, joka kuuntelee paikallisia yhteyksiä.

## Määritys

Sähköposti määritetään seuraavilla ympäristömuuttujilla.

#### Lähettäjän asetukset

| Nimi                          | Kuvaus                                                                                                                                                       |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `OVERLEAF_EMAIL_FROM_ADDRESS` | <p>Lähettäjän osoite esim. <a href="mailto:support@mycompany.com"><code>'<support@mycompany.com>'</code></a><br><br>- <strong>Pakollinen</strong>: kyllä</p> |
| `OVERLEAF_EMAIL_REPLY_TO`     | Vastausosoite esim. `'noreply@mycompany.com'`                                                                                                                |

#### SMTP

| Nimi                                    | Kuvaus                                                                                                                                                                                                                                                                                 |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST`              | Yhteyden muodostamiseen käytettävä isäntänimi tai IP-osoite. Sen täytyy olla käytettävissä Docker-säilöstä                                                                                                                                                                             |
| `OVERLEAF_EMAIL_SMTP_PORT`              | Portti, johon yhdistetään                                                                                                                                                                                                                                                              |
| `OVERLEAF_EMAIL_SMTP_SECURE`            | Jos `true` yhteys käyttää TLS:ää yhdistettäessä palvelimeen. Jos `false` tai sitä ei ole asetettu, TLS:ää käytetään, jos palvelin tukee `STARTTLS` -laajennusta. Useimmissa tapauksissa aseta tämä arvoksi `true` jos yhdistät porttiin `465`. Portille `587` tai `25` pidä se `false` |
| `OVERLEAF_EMAIL_SMTP_USER`              | Käyttäjänimi, jota käytetään SMTP-palvelimelle autentikoitumiseen                                                                                                                                                                                                                      |
| `OVERLEAF_EMAIL_SMTP_PASS`              | SMTP-käyttäjänimeen liittyvä salasana                                                                                                                                                                                                                                                  |
| `OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH` | Jos `false` tämä avaisi yhteyden TLS-palvelimeen, jolla on itse allekirjoitettu tai virheellinen TLS-sertifikaatti                                                                                                                                                                     |
| `OVERLEAF_EMAIL_SMTP_IGNORE_TLS`        | Kun `true` ja `OVERLEAF_EMAIL_SMTP_SECURE` on `false` silloin TLS:ää ei käytetä, vaikka palvelin tukee `STARTTLS` -laajennusta                                                                                                                                                         |
| `OVERLEAF_EMAIL_SMTP_NAME`              | Valinnainen isäntänimi TLS-varmennusta varten, jos `OVERLEAF_EMAIL_SMTP_HOST` on asetettu IP-osoitteeksi, oletusarvo on koneen isäntänimi.                                                                                                                                             |
| `OVERLEAF_EMAIL_SMTP_LOGGER`            | Kun `true` tulostaa lokiviestit tiedostoon `web.log`.                                                                                                                                                                                                                                  |

#### Amazon SES:n SMTP-rajapinta

Voit lukea lisää Amazon SES:n SMTP-rajapinnan käytöstä sähköpostin lähettämiseen [tässä](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html).

| Nimi                       | Kuvaus                                                                                                     |
| -------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST` | Yhteyden muodostamiseen käytettävä isäntänimi tai IP-osoite. Sen täytyy olla käytettävissä Docker-säilöstä |
| `OVERLEAF_EMAIL_SMTP_PORT` | Portti, johon yhdistetään                                                                                  |
| `OVERLEAF_EMAIL_SMTP_USER` | Käyttäjänimi, jota käytetään SMTP-palvelimelle autentikoitumiseen                                          |
| `OVERLEAF_EMAIL_SMTP_PASS` | SMTP-käyttäjänimeen liittyvä salasana                                                                      |

#### Amazon SES -API

Voit lukea lisää Amazon SES -API:n käytöstä sähköpostin lähettämiseen [tässä](https://docs.aws.amazon.com/ses/latest/dg/send-email-api.html).

| Nimi                                   | Kuvaus                                            |
| -------------------------------------- | ------------------------------------------------- |
| `OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID` | Jos käytät AWS SES:ää, pääsyavain                 |
| `OVERLEAF_EMAIL_AWS_SES_SECRET_KEY`    | Jos käytät AWS SES:ää, salainen avain             |
| `OVERLEAF_EMAIL_AWS_SES_REGION`        | Jos sitä ei ole asetettu, oletusalue on US-EAST-1 |

#### AWS SES instanssiroolien kanssa

| Nimi                    | Kuvaus                                                                                                                                                        |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_DRIVER` | Kun tämä on asetettu arvoon `ses`, sähköpostijärjestelmä käyttää SES API -menetelmää ja luottaa määritettyihin instanssirooleihin sähköpostin lähettämisessä. |

#### Mukauttaminen

| Nimi                           | Kuvaus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_CUSTOM_EMAIL_FOOTER` | <p>Mukautettu HTML, joka lisätään kaikkien sähköpostien loppuun. esim.<br><br><strong>Esimerkki</strong>: <code>"\<div>Tätä järjestelmää ylläpitää osasto x \</div> \<div> Jos sinulla on kysyttävää, katso UKK:stamme \<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'>täältä\&#x26;#x3C;/a>\&#x26;#x3C;/div>](https://overleaf-pro.ayaka.space/on-premises/fi/maaritys/overleaf-toolkit/https:/somwhere.com'>täältä\&#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://overleaf-pro.ayaka.space/on-premises/fi/maaritys/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.
