# 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: 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:

```
GET https://enterprise.hideez.com/faq/setting-up-gmail-with-hes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
