> 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/da/konfiguration/overleaf-toolkit/email-delivery.md).

# E-maillevering

Overleaf understøtter afsendelse af e-mail via to metoder: Simple Mail Transfer Protocol (SMTP) og [Amazon Simple Email Service (SES)](https://aws.amazon.com/ses/). SMTP kan bruges, hvis du har en e-mailserver aktiveret på din localhost, der lytter efter lokale forbindelser.

## Konfiguration

E-mail konfigureres ved hjælp af følgende miljøvariabler.

#### Afsenderkonfiguration

| Navn                          | Beskrivelse                                                                                                                                             |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_FROM_ADDRESS` | <p>Afsenderadressen f.eks. <a href="mailto:support@mycompany.com"><code>'<support@mycompany.com>'</code></a><br><br>- <strong>Påkrævet</strong>: ja</p> |
| `OVERLEAF_EMAIL_REPLY_TO`     | Svar-til-adressen f.eks. `'noreply@mycompany.com'`                                                                                                      |

#### SMTP

| Navn                                    | Beskrivelse                                                                                                                                                                                                                                                                                                                              |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST`              | Værtsnavnet eller IP-adressen, der oprettes forbindelse til. Skal være tilgængelig fra Docker-containeren                                                                                                                                                                                                                                |
| `OVERLEAF_EMAIL_SMTP_PORT`              | Porten, der oprettes forbindelse til                                                                                                                                                                                                                                                                                                     |
| `OVERLEAF_EMAIL_SMTP_SECURE`            | Hvis `true` vil forbindelsen bruge TLS, når der oprettes forbindelse til serveren. Hvis `false` eller ikke er angivet, bruges TLS, hvis serveren understøtter `STARTTLS` udvidelsen. I de fleste tilfælde skal denne værdi sættes til `true` hvis du opretter forbindelse til port `465`. For port `587` eller `25` lad den være `false` |
| `OVERLEAF_EMAIL_SMTP_USER`              | Brugernavnet, der skal bruges til at autentificere mod SMTP-serveren                                                                                                                                                                                                                                                                     |
| `OVERLEAF_EMAIL_SMTP_PASS`              | Adgangskoden, der er knyttet til SMTP-brugernavnet                                                                                                                                                                                                                                                                                       |
| `OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH` | Hvis `false` dette ville åbne en forbindelse til en TLS-server med et selvsigneret eller ugyldigt TLS-certifikat                                                                                                                                                                                                                         |
| `OVERLEAF_EMAIL_SMTP_IGNORE_TLS`        | Når `true` og `OVERLEAF_EMAIL_SMTP_SECURE` er `false` bruges TLS ikke, selv om serveren understøtter `STARTTLS` udvidelsen                                                                                                                                                                                                               |
| `OVERLEAF_EMAIL_SMTP_NAME`              | Valgfrit værtsnavn til TLS-validering, hvis `OVERLEAF_EMAIL_SMTP_HOST` var sat til en IP-adresse, standard er værtsnavnet på maskinen.                                                                                                                                                                                                   |
| `OVERLEAF_EMAIL_SMTP_LOGGER`            | Når `true` skriver logmeddelelser til `web.log`.                                                                                                                                                                                                                                                                                         |

#### Amazon SES SMTP-grænseflade

Du kan læse mere om brug af Amazon SES SMTP-grænsefladen til at sende e-mail [her](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html).

| Navn                       | Beskrivelse                                                                                               |
| -------------------------- | --------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST` | Værtsnavnet eller IP-adressen, der oprettes forbindelse til. Skal være tilgængelig fra Docker-containeren |
| `OVERLEAF_EMAIL_SMTP_PORT` | Porten, der oprettes forbindelse til                                                                      |
| `OVERLEAF_EMAIL_SMTP_USER` | Brugernavnet, der skal bruges til at autentificere mod SMTP-serveren                                      |
| `OVERLEAF_EMAIL_SMTP_PASS` | Adgangskoden, der er knyttet til SMTP-brugernavnet                                                        |

#### Amazon SES API

Du kan læse mere om brug af Amazon SES API'et til at sende e-mail [her](https://docs.aws.amazon.com/ses/latest/dg/send-email-api.html).

| Navn                                   | Beskrivelse                                      |
| -------------------------------------- | ------------------------------------------------ |
| `OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID` | Hvis du bruger AWS SES, er adgangsnøglen         |
| `OVERLEAF_EMAIL_AWS_SES_SECRET_KEY`    | Hvis du bruger AWS SES, er den hemmelige nøgle   |
| `OVERLEAF_EMAIL_AWS_SES_REGION`        | Hvis ikke angivet, er standardregionen US-EAST-1 |

#### AWS SES med instanseroller

| Navn                    | Beskrivelse                                                                                                                           |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_DRIVER` | Når denne er sat til `ses`, vil e-mailsystemet bruge SES API-metoden og stole på de konfigurerede instanseroller til at sende e-mail. |

#### Tilpasning

| Navn                           | Beskrivelse                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_CUSTOM_EMAIL_FOOTER` | <p>Brugerdefineret HTML, som tilføjes til alle e-mails. f.eks.<br><br><strong>Eksempel</strong>: <code>"\<div>Dette system drives af afdeling x \</div> \<div> Hvis du har spørgsmål, så se vores 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'>her\&#x26;#x3C;/a>\&#x26;#x3C;/div>](https://ayakaleaf-pro.ayaka.space/on-premises/da/konfiguration/overleaf-toolkit/https:/somwhere.com'>her\&#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/da/konfiguration/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.
