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

# Invio delle email

Overleaf supporta l'invio di email tramite due metodi: Simple Mail Transfer Protocol (SMTP) e [Amazon Simple Email Service (SES)](https://aws.amazon.com/ses/). SMTP può essere usato se hai un server email abilitato sul tuo localhost che è in ascolto per connessioni locali.

## Configurazione

L'email viene configurata usando le seguenti variabili d'ambiente.

#### Configurazione del mittente

| Nome                          | Descrizione                                                                                                                                                      |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_FROM_ADDRESS` | <p>L'indirizzo mittente, ad es. <a href="mailto:support@mycompany.com"><code>'<support@mycompany.com>'</code></a><br><br>- <strong>Obbligatorio</strong>: sì</p> |
| `OVERLEAF_EMAIL_REPLY_TO`     | L'indirizzo di risposta, ad es. `'noreply@mycompany.com'`                                                                                                        |

#### SMTP

| Nome                                    | Descrizione                                                                                                                                                                                                                                                                                                              |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `OVERLEAF_EMAIL_SMTP_HOST`              | Il nome host o l'indirizzo IP a cui connettersi. Deve essere accessibile dal container Docker                                                                                                                                                                                                                            |
| `OVERLEAF_EMAIL_SMTP_PORT`              | La porta a cui connettersi                                                                                                                                                                                                                                                                                               |
| `OVERLEAF_EMAIL_SMTP_SECURE`            | Se `true` la connessione userà TLS quando si connette al server. Se `false` o non è impostato, allora TLS viene usato se il server supporta l' `STARTTLS` estensione. Nella maggior parte dei casi imposta questo valore su `true` se ti stai connettendo alla porta `465`. Per la porta `587` o `25` mantienilo `false` |
| `OVERLEAF_EMAIL_SMTP_USER`              | Il nome utente che deve essere usato per autenticarsi sul server SMTP                                                                                                                                                                                                                                                    |
| `OVERLEAF_EMAIL_SMTP_PASS`              | La password associata al nome utente SMTP                                                                                                                                                                                                                                                                                |
| `OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH` | Se `false` questo aprirebbe una connessione a un server TLS con un certificato TLS autofirmato o non valido                                                                                                                                                                                                              |
| `OVERLEAF_EMAIL_SMTP_IGNORE_TLS`        | Quando `true` e `OVERLEAF_EMAIL_SMTP_SECURE` è `false` allora TLS non viene usato anche se il server supporta `STARTTLS` l'estensione                                                                                                                                                                                    |
| `OVERLEAF_EMAIL_SMTP_NAME`              | Nome host opzionale per la convalida TLS se `OVERLEAF_EMAIL_SMTP_HOST` è stato impostato su un indirizzo IP, per impostazione predefinita usa il nome host della macchina.                                                                                                                                               |
| `OVERLEAF_EMAIL_SMTP_LOGGER`            | Quando `true` stampa messaggi di log su `web.log`.                                                                                                                                                                                                                                                                       |

#### Interfaccia SMTP di Amazon SES

Puoi leggere di più sull'uso dell'interfaccia SMTP di Amazon SES per inviare email [qui](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html).

| Nome                       | Descrizione                                                                                   |
| -------------------------- | --------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST` | Il nome host o l'indirizzo IP a cui connettersi. Deve essere accessibile dal container Docker |
| `OVERLEAF_EMAIL_SMTP_PORT` | La porta a cui connettersi                                                                    |
| `OVERLEAF_EMAIL_SMTP_USER` | Il nome utente che deve essere usato per autenticarsi sul server SMTP                         |
| `OVERLEAF_EMAIL_SMTP_PASS` | La password associata al nome utente SMTP                                                     |

#### Amazon SES API

Puoi leggere di più sull'uso dell'API di Amazon SES per inviare email [qui](https://docs.aws.amazon.com/ses/latest/dg/send-email-api.html).

| Nome                                   | Descrizione                                            |
| -------------------------------------- | ------------------------------------------------------ |
| `OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID` | Se si usa AWS SES, la chiave di accesso                |
| `OVERLEAF_EMAIL_AWS_SES_SECRET_KEY`    | Se si usa AWS SES, la chiave segreta                   |
| `OVERLEAF_EMAIL_AWS_SES_REGION`        | Se non è impostato, la regione predefinita è US-EAST-1 |

#### AWS SES con ruoli di istanza

| Nome                    | Descrizione                                                                                                                                   |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_DRIVER` | Quando questo è impostato su `ses`, il sistema email userà il metodo API SES e si affiderà ai ruoli di istanza configurati per inviare email. |

#### Personalizzazione

| Nome                           | Descrizione                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `OVERLEAF_CUSTOM_EMAIL_FOOTER` | <p>HTML personalizzato che viene aggiunto a tutte le email. ad es.<br><br><strong>Esempio</strong>: <code>"\<div>Questo sistema è gestito dal dipartimento x \</div> \<div> Se hai domande, consulta il nostro 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'>qui\&#x26;#x3C;/a>\&#x26;#x3C;/div>](https://overleaf-pro.ayaka.space/on-premises/it/configurazione/overleaf-toolkit/https:/somwhere.com'>qui\&#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/it/configurazione/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.
