--- title: "How to Setup Email Notifications via Gmail" slug: "how-to-setup-email-notifications-via-gmail" updated: 2022-07-18T22:15:39Z published: 2022-07-18T22:15:39Z canonical: "ametawiki.ametagroup.com/how-to-setup-email-notifications-via-gmail" --- > ## Documentation Index > Fetch the complete documentation index at: https://ametawiki.ametagroup.com/llms.txt > Use this file to discover all available pages before exploring further. # How to Setup Email Notifications via Gmail ### Prerequisites * A Gmail account * An email address to send the notifications to * A Dahua NVR ### Step by Step Instructions 1. Log into the web interface of the NVR then select **Setting** at the top left. Select **Network** from the drop-down ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-89C8UBRD.png){height="" width=""} 2. Select Email from the list on the left ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-Z1JHZ86K.png){height="" width=""} 3. Check the box next to **Enable**. Input the following information into these fields: * **SMTP Server**: smtp.gmail.com * **Port**: 587 * Username: [Your Gmail email address] * **Sender**: [Your Gmail email address] ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-72V2XJXX.png){height="" width=""} 4. Open a web browser and log into your Gmail account. Click the Account icon at the top right Select **Manage your Google Account** ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-ATL0ZGE4.png){height="" width=""} 5. Select **Security** from the list on the left If 2-Step Verification is already setup on your account, you will see it listed as "On". If that is the case, skip to Step 7. If 2-Step Verification is off, click the arrow to the right of **2-Step Verification** under "Signing in to Google" ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-RRLNODCO.png){height="" width=""} 6. Select **Get Started** and then follow through all the steps to setup 2-Step Verification for your Gmail account ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-D2U1ZK5K.png){height="" width=""} 7. 2-Step Verification should now show "On" under "Signing in to Google". Select the arrow to the right of **App passwords** ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-151NBOO2.png){height="" width=""} 8. Click on **Select app** Then select Mail from the drop-down ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-NV2QYKX4.png){height="" width=""} 9. Click on **Select device** Then select **Other (Custom name)** from the drop-down ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-0LQLI3JJ.png){height="" width=""} 10. Click on the field and type in "Dahua NVR" or another name that will help you associate this password with your NVR then select **Generate** ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-88D05GO8.png){height="" width=""} 11. You will see a unique password that was generated for use with your NVR. Note this password for use in the next step ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-TOTUHL32.png){height="" width=""} 12. Go back to your NVR's web interface, where you left off in Step 3. Enter the **password** that you got from Step 11 in the Password field ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-QV7HUBBA.png){height="" width=""} 13. Make sure **TLS** is selected for **Encryption Type** if it is not already ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-2AZ2Q7TR.png){height="" width=""} 14. Enter the email address you want to send these notifications to next to **Receiver** and then press the + button to the right (The reciever email address(es) can be the same as the sending address or different). Repeat this process for all email addresses you want notifications sent to ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-3HEWH504.png){height="" width=""} 15. Enter the amount of seconds you want between each email notification in the field next to **Sending Interval** If you want to recieve emails to verify the email notification system is still working, check the box next to **Health Mail** and enter how often you want those emails in the field next to **Sending Interval** ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-AYEF5E5V.png){height="" width=""} 16. Click **Apply** at the bottom right to save your changes Press the **Test** button on the bottom left to test notifications with the information you entered above If the test is successful you will see a message at the top that says "Test succeded" and you will recieve a test email If it says "Test Failed", check all the information you entered above ![image.png](https://cdn.document360.io/698fbf35-46b1-42c8-9a01-0506761ce4e8/Images/Documentation/image-6BJKSDIB.png){height="" width=""}