Hikvision iVMS-4200 is camera management software created and maintained by Hikvision that allows you to manage Hikvision IP cameras, DVRs and NVRs and send alerts when certain events are triggered. It’s a very flexible and easy to use piece of software that will make your Hikvision system more convenient to use. Hikvision iVMS-4200 can be installed on Windows computers and Mac.
This article will show how to setup email notifications on iVMS-4200 using a Gmail account. There are some important details you have to pay attention to when configuring the software. This method works if you’re using a Gmail account only.

Link your DVR to iVMS-4200

The first thing you have to do is to make sure your Hikvision IP camera, DVR or NVR is connected to the network and is able to communicate to the iVMS-4200 client software which should be connected to the Internet. See the diagram below that illustrates the connection.
As you can see, there’s an analog camera connected to a Hikvision DVR which is connected to a router and a laptop. The devices are able to reach the Internet. In other words, all these devices need to be connected on the same network (router, switch), they need to see each other and be able to communicate.

In our case, the laptop has the iVMS-4200 installed and can display the image from the analog camera. (It works the same way for a Hikvision IP camera or NVR).
If your Hikvision device is working like this, then you need to setup the email notification and the event that should trigger the iVMS-4200 to send it. Below are the necessary instructions.

iVMS 4200 email notification setup

Before setting up the email notifications, you need to setup the iVMS-4200 SMTP (Simple Mail Transfer Protocol) service for authentication. In our case, we will use a Gmail account which requires encrypted authentication SSL (Secure Socket Layer). Open the iVMS-4200 and click on Control Panel > System Configuration.
Click on Email on the left side and fill the information:
SMTP server: smtp.gmail.com
Encryption Type: SSL
Port: 465
Username: username is your full email address
Password: email’s password
Sender Address: your email address

After filling all the information, choose up to 3 email receivers and click the “Send Test Email” button to make sure everything is working.

If everything is OK, you might see a message on the bottom right of the screen: “Sending test email succeeded”. However, given the security layers of Gmail, most likely you will receive an error. Depending on the iVMS-4200 version you have installed, it won’t be trusted by Google (Gmail) and you will get an error message and an alert from Google will show up in your email inbox, as seen on the image below.
Google knows that a new application is trying to access your account and protects you from that. So, you need to recognize the activity by click on “Yes”.

Configure the iVMS-4200 email alerts

To receive the emails alerts it’s necessary to setup the events such as motion detection or alarm. Just open the iVMS-4200 and go to the Event Management. Choose the camera you want to configure, enable motion detection and the options you want to use which includes the email alert.
Now the movements in front of the camera will trigger the email notifications. Check your email inbox and look for any notifications. As you can see (image below) , the iVMS-4200 sends email to all the recipients.

iVMS-4200 email test fail

Sometimes there will be issues when linking the system to a Gmail account. A common problem of iVMS-4200 setup with Gmail is related to the “secure app” which means Gmail only trust applications that are safe and usually, the iVMS-4200 is not on such a list, so you can get the error messages shown below:
Sending email failed.Error Code HCNetUtils.dll[535]. (Authentication failed.)
Sending email failed.Error Code HCNetUtils.dll[73]. (Socket connection break.)
These error messages usually show up in the iVMS-4200 Alarm event tab as shown in the next picture. They are related to the “secure app” issue.

How to solve the iVMS-4200 email test fail

The software is not the only one to tell you about the error, Google also lets you know that a non-secure application is trying to access your email account. You can see a message in your mail inbox with such information.

To solve the problem with “Less secure app blocked” you can go to your Gmail configuration account and change the “secure app” configuration. Go to https://myaccount.google.com and click on the Security tab.
Go to down in the page until you find the “Less secure app access” setup.
Turn on the access. After this you’re pretty much done. Your iVMS-4200 will now work with your Gmail account.
After following these instructions the email notification feature will work correctly on your Hikvision iVMS-4200. You can enable the email notifications directly from the recorder as well, consult this article: Set up motion detection email alert for Hikvision camera/NVR.