I had the same issue with gmail and my Hikvision IPCs not emailing alerts. Finally got it fixed. I did the following...
-Upgrade the Firmware on my IPC to V5.4.0
-Set the following settings in Advance Settings<Email
SMTP Server : smtp.gmail.com
SMTP Port : 587
Email Encryption : TLS
Enabled...