Updated and confirmed working with Gmail in May 2022, but please use sendinblue free tier (300 notification emails per day) instead from June 2022!
This tutorial will show you how to set up motion detection email alerts for your Hikvision camera such as the Hikvision DS-2CD2042WD-I. You can use these settings even if you use the camera with an NVR such as the Hikvision DS-7608NI-E2/8N.
A quick note: As an Amazon Associate I earn from qualifying purchases. This post contains affiliate link(s). An affiliate link means I may earn advertising or referral fees if you make a purchase through my link, at no extra cost to you.
Set up motion detection
Using your favourite web browser (I recommend Chrome as it works well with Hikvision), login to your camera using its IP address as the URL. If you haven’t yet changed the username and password, these will be admin and 12345 (change your password ASAP!). Set up your desired motion detection pages in your camera’s web interface.
Turn on email alerts
Next make sure email alerts are turned on in each of your motion detection settings pages (Motion Detection, Video Tampering, Face Detection, Line Crossing Detection or Intrusion Detection) as shown below:
Set up your camera’s internet connection
Your camera needs some information so that it can connect to the internet and send the email alert out. By default your camera must have figured out all of the fields by itself if you have DHCP enabled, if so leave everything at the default values.
If the setup is not correct and you do not know your IPv4 details, click here.
Configure your Gmail account security settings
In this tutorial I am using a Gmail address that the camera will use to send email notifications. However for this to work, you need to enable the ‘Less Secure App Access’ feature.
To do this, first navigate to your Google account settings and click Security on the left menu. By default the ‘Less Secure App Access’ is disabled, but we need it so click on ‘Turn on access’ as shown below.
Then your Gmail account is ready for your Hikvision camera or NVR to login to and send email notifications.
Most online guides miss this step above and will lead to frustration as Gmail will not allow your camera to login unless you enable ‘Less Secure App Access’!
Configure your email settings
Next we need to configure the camera as the email ‘sender’- it will use the Gmail account you configured above to send the email alert to a ‘receiver’ account. So the ‘sender’ is the camera and the receiver is the email address(es) that you want to receive the alerts on. Follow the steps below to configure your camera:
Step 1: Click on the configuration tab
Step 2: Under Network, click on ‘Advanced Settings’ (older cameras have a slightly different menu)
Step 3: Choose the email tab
Step 4: Refer to the screenshot above to fill out this section. Enter the login details of your Gmail account – this is the sender account. Enter the ‘receiver’ account details – this is where the email alerts will be received. Tick ‘Attached Image’ if you would like snapshots of the motion detected as well.
Test your settings
Step 5: Click the Test button. You should see the “Testing Succeeded” message and receive a test email at the ‘receiver’ address(es).
If not, you need to ensure that all settings such as TCP/IP and email settings are entered correctly as in the screenshots above.
Save your settings
Finally save your settings by clicking the Save button.
Now test your email alerts by intentionally setting off the motion detection of your camera. You should get an email alert within 60 seconds.
You may occasionally find that you no longer receive alerts. This could be because of two reasons:
- Issues with sending address – Gmail may switch off the ‘Less secure app access’ feature if your camera never uses it, just turn it on as described earlier if this happens. As a precaution, once in a while test your camera’s email alerts feature to ensure all is well
- Issues at the receiving end – Most email providers like Gmail may automatically mark the alerts as spam and move these emails to the Junk folder – it will treat the sender address as a suspicious sender due to repeated motion detection email alerts being sent day in and day out. Simply choose the option to treat the ‘sender’ address as a trusted email address and this behaviour should stop.