> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/autosync-for-mim/configuration/settings/mail-settings.md).

# Mail settings

AutoSync can send an email when the execution of a run profile fails. If email settings are configured, other errors such as trigger failures will also be sent.

![](https://2216211724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXaBwZ6mZ5WbX108JiSsn%2Fuploads%2Fgit-blob-2915ee166aa36219ecbfec5fe3a084594fd91adc%2Fsettings-mail.png?alt=media)

| Setting                                              | Description                                                                                                                                                                                                                                                              |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Enable mail                                          | Allows AutoSync to send email                                                                                                                                                                                                                                            |
| Mail host                                            | The SMTP server to use to send the email                                                                                                                                                                                                                                 |
| Mail host port                                       | The SMTP server port to connect to                                                                                                                                                                                                                                       |
| Use TLS                                              | AutoSync will use STARTTLS to encrypt communication between the client and server. Note that AutoSync does not support SMTPS (SMTP over SSL)                                                                                                                             |
| From address                                         | The address that AutoSync will send the email from                                                                                                                                                                                                                       |
| To address                                           | The address that AutoSync will send the email to                                                                                                                                                                                                                         |
| Use service account credentials                      | Specifies that AutoSync should attempt to authenticate to the SMTP server using the credentials of the service account. Leave unticked if your mail server does not require authentication                                                                               |
| Username/Password                                    | A specific set of credentials to use to authenticate to the SMTP server. Leave blank if your mail server does not require authentication                                                                                                                                 |
| Error reports                                        | Error reports can either be sent every time a run profile fails, or AutoSync can send an email the first time a specific error occurs. If the same error keeps occurring, subsequent emails will not be sent. If a different error occurs, then an email *will* be sent. |
| Ignore the following return codes                    | A list of return codes that AutoSync should not send an email for. By default this includes *success* which can be removed if you want email reports for all run profile execution attempts.                                                                             |
| Maximum number of error records to include in report | AutoSync will provide details of each error that occurs during a run profile. To avoid excessively long emails, this setting should be kept quite low                                                                                                                    |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lithnet.io/autosync-for-mim/configuration/settings/mail-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
