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