> For the complete documentation index, see [llms.txt](https://enterprise.hideez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enterprise.hideez.com/faq/setting-up-gmail-with-hes.md).

# Setting Up Gmail with HES

1. **Enable 2-Step Verification**:
   * Go to your [Google Account](https://myaccount.google.com/).
   * Navigate to **Security** from the left-side menu.
   * In the **Signing in to Google** section, click **2-Step Verification** and follow the instructions to enable it.
2. **Generate App Password**:
   * After enabling 2-Step Verification, go back to the **Security** section.
   * Under **Signing in to Google**, click **App passwords**.
   * Select the **Mail** app and choose your device, then click **Generate**.
   * A 16-character password will be generated (example: `xfvnjrnzhsrodwuv`).
3. **Insert the Generated App Password into HES**:

   * Open the **HES Email Settings** in the **Settings → Parameters → Mail** section.
   * Configure the email sender using the following details:

   ```json
   jsonCopy code"EmailSender": {
     "Host": "smtp.gmail.com",
     "Port": 587,
     "EnableSSL": true,
     "UserName": "example@gmail.com",
     "Password": "xfvnjrnzhsrodwuv"
   }
   ```

   * Replace `"example@gmail.com"` with your Gmail address and `"xfvnjrnzhsrodwuv"` with the generated app password.
4. **Save the Settings**:
   * Save the changes in HES and verify that the email configuration works by sending a test email.

***

With these steps, your Hideez Enterprise Server will use Gmail as its email service, allowing it to send notifications and other messages through your Gmail account.


---

# 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://enterprise.hideez.com/faq/setting-up-gmail-with-hes.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.
