Difference between revisions of "Email/Email Notifications Setup GMail"

(Video Instructions)
Line 1: Line 1:
 
==How to Setup Email Notifications via Gmail==
 
==How to Setup Email Notifications via Gmail==
 
===Prerequisites===
 
===Prerequisites===
* A temporary gmail account to send from.
+
* A gmail account
* A email to send the notification to.
+
* An email address to send the notifications to
* A NVR.
+
* A Dahua NVR
  
 
===Video Instructions===
 
===Video Instructions===
<embedvideo service="youtube">https://www.youtube.com/watch?v=6TuKPYQh2m0</embedvideo>
+
''Coming Soon''
  
 
===Step by Step Instructions===
 
===Step by Step Instructions===
To get email notification for an NVR on gmail:
 
  
1. Log in to an NVR, go to Setup -> Network -> Email and check Enable in the check box then enter the SMTP Server.
+
1. Log into the web interface of the NVR
 +
<br>Then select '''Setting''' at the top left
 +
<br>Select '''Network''' from the dropdown
  
[[File:GmailNotification1.jpg|500px]]
+
[[File:EmailNotificationsGmail1.png|1100px]]
  
2. To get the SMTP Server, open up command prompt by typing cmd on the windows search bar and type ping smtp.gmail.com to get the IP address.
+
2. Select '''Email''' from the list on the left
  
[[File:GmailNotification2.jpg|500px]]
+
[[File:EmailNotificationsGmail2.png|1100px]]
  
3. Enter the IP address into the SMTP server.
+
3. Check the box next to '''Enable'''
 +
<br>Input the following information into these fields:
 +
* '''SMTP Server''': smtp.gmail.com
 +
* '''Port''': 587
 +
* '''Username''': [Your Gmail email address]
 +
* '''Sender''': [Your Gmail email address]
  
[[File:GmailNotification3.jpg|500px]]
+
[[File:EmailNotificationsGmail3.png|1100px]]
  
4. The port number for gmail is 465, and enter the email information that you will be sending the notification from into the username/password/sender. Sender is the full email information.
+
4. Open a web browser and log into your Gmail account
 +
<br>Click the Account icon at the top right
 +
<br>Select '''Manage your Google Account'''
  
[[File:GmailNotification4.jpg|500px]]
+
[[File:EmailNotificationsGmail5.png|1100px]]
  
5. Enter a subject for the email notification and enter a receiver by entering and pressing the plus sign, you may have multiple receiver.
+
5. Select '''Security''' from the list on the left
 +
<br>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.
 +
<br>If 2-Step Verification is not turned on, click the arrow to the right of '''2-Step Verification''' under "Signing in to Google"
  
[[File:GmailNotification5.jpg|500px]]
+
[[File:EmailNotificationsGmail6.png|1100px]]
  
6. Enter a time interval for the frequency of the email if you wish and click save.
+
6. Select '''Get Started''' and then follow through all the steps to setup 2-Step Verification for your Gmail account
  
[[File:GmailNotification6.jpg|500px]]
+
[[File:EmailNotificationsGmail7.png|600px]]
  
7. Go back to the command prompt and enter ipconfig /all and get the DNS Server.
+
7. 2-Step Verification should now show "On" under "Signing in to Google"
 +
<br>Select the arrow to the right of '''App passwords'''
  
[[File:GmailNotification7.jpg|500px]]
+
[[File:EmailNotificationsGmail8.png|1100px]]
  
8. On the NVR go to TCP/IP and enter the information on DNS.
+
8. Click on '''Select app'''
 +
<br>Then select '''Mail''' from the drop-down
  
[[File:GmailNotification8.jpg|500px]]
+
[[File:EmailNotificationsGmail9.png|700px]]
  
9. Go back to the SMTP menu and make sure the authentication is on SSL, save and press email Test and you should see it on your email.
+
9. Click on '''Select device'''
 +
<br>Then select '''Other (Custom name)''' from the drop-down
  
[[File:GmailNotification9.jpg|500px]]
+
[[File:EmailNotificationsGmail10.png|700px]]
  
 +
10. Click on the field and type in "Dahua NVR" or another name that will help you associate this password with your NVR
 +
<br>Then select '''Generate'''
  
===Additional Gmail Settings===
+
[[File:EmailNotificationsGmail11.png|700px]]
Please make sure your gmail settings on the temporary account are set to Allow less secure apps is set to ON:
 
  
1. Log into Gmail account and select the icon in the top right corner.
+
11. You will see a unique password that was generated for use with your NVR
 +
<br>Note this password for use in the next step
  
[[File:googlesettings001.jpg|500px]]
+
[[File:EmailNotificationsGmail12.png|600px]]
  
 +
12. Go back to your NVR's web interface, where you left off in Step 3
 +
<br> Enter the password that you got from Step 11 in the '''Password''' field
  
2. Select Connected apps & sites, then make sure "Allow Less secure apps: ON" is on.
+
[[File:EmailNotificationsGmail14.png|1100px]]
  
[[File:googlesettings002.jpg|500px]]
+
13. Make sure '''TLS''' is selected for '''Encryption Type''' if it is not already
  
[[Category:HCVR]]
+
[[File:EmailNotificationsGmail15.png|1100px]]
[[Category:Remote_Access]]
 
[[Category:Alarm]]
 
[[Category:NVR]]
 
[[Category:Email]]
 
  
'''ALSO''' if you have two step verification on the email will not be sent from this device.
+
14. Enter the email address you want to send these notifications to next to '''Receiver''' and then press the '''+''' button to the right
 +
<br>(The reciever email address(s) can be the same as the sending address or different)
 +
<br>Repeat this process for all email addresses you want notifications sent to
  
{{Template:Footer:Remote_Access}}
+
[[File:EmailNotificationsGmail4.png|1100px]]
 +
 
 +
15. Enter the amount of seconds you want between each email notification in the field next to '''Sending Interval'''
 +
<br>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'''
 +
 
 +
[[File:EmailNotificationsGmail16.png|1100px]]
 +
 
 +
16. Click '''Apply''' at the bottom right to save your changes
 +
<br>Press the '''Test''' button on the bottom left to test notifications with the information you entered above
 +
<br>If the test is successful you will see a message at the top that says "Test succeded" and you will recieve a test email
 +
<br>If it says "Test Failed", check all the information you entered above
 +
 
 +
[[File:EmailNotificationsGmail13.png|1100px]]

Revision as of 21:36, 24 May 2022

How to Setup Email Notifications via Gmail

Prerequisites

  • A gmail account
  • An email address to send the notifications to
  • A Dahua NVR

Video Instructions

Coming Soon

Step by Step Instructions

1. Log into the web interface of the NVR
Then select Setting at the top left
Select Network from the dropdown

EmailNotificationsGmail1.png

2. Select Email from the list on the left

EmailNotificationsGmail2.png

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]

EmailNotificationsGmail3.png

4. Open a web browser and log into your Gmail account
Click the Account icon at the top right
Select Manage your Google Account

EmailNotificationsGmail5.png

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 not turned on, click the arrow to the right of 2-Step Verification under "Signing in to Google"

EmailNotificationsGmail6.png

6. Select Get Started and then follow through all the steps to setup 2-Step Verification for your Gmail account

EmailNotificationsGmail7.png

7. 2-Step Verification should now show "On" under "Signing in to Google"
Select the arrow to the right of App passwords

EmailNotificationsGmail8.png

8. Click on Select app
Then select Mail from the drop-down

EmailNotificationsGmail9.png

9. Click on Select device
Then select Other (Custom name) from the drop-down

EmailNotificationsGmail10.png

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

EmailNotificationsGmail11.png

11. You will see a unique password that was generated for use with your NVR
Note this password for use in the next step

EmailNotificationsGmail12.png

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

EmailNotificationsGmail14.png

13. Make sure TLS is selected for Encryption Type if it is not already

EmailNotificationsGmail15.png

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(s) can be the same as the sending address or different)
Repeat this process for all email addresses you want notifications sent to

EmailNotificationsGmail4.png

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

EmailNotificationsGmail16.png

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

EmailNotificationsGmail13.png