How to upgrade zoneminder 1.29 to 1.30 on Ubuntu 16.04

You will have to refer iconnor  for adding Adding Zoneminder  PPA to your system.

Open the Ubuntu terminal

sudo add-apt-repository ppa:iconnor/zoneminder
sudo apt-get update
sudo apt-get upgrade 
sudo apt-get dist-upgrade

Then open the Synaptic Package Manager and see whether the  Zoneminder is upgraded to version 1.3 properly .If not upgrade using the Synaptic Package Manager.

Now open the ZM Console to find Zoneminder is running.

How to email using SSMTP

Please refer Zoneminder Wiki 

Installation of SSMTP

sudo apt-get update

apt-get install ssmtp

apt-get install mailutils

Configuration of SSMTP

To open ssmtp.conf

sudo gedit /etc/ssmtp/ssmtp.conf.

Then edit to include following  lines and save the file

root="your gmail"
AuthUser="your gmail"
AuthPass=" password of your gmail"

Screenshot from 2016-09-04 13-04-12




Configure the revaliases with the correct “From” addresses while sending email

sudo gedit  /etc/ssmtp/revaliases

Add following lines and save the file

root:"your gmail"
www-data:"your gmail"
Screenshot from 2016-09-04 13-05-55


Checking to see mail works

Go to root sudo su enter the root password cd ..

echo "Hello, World" | mail -s "My email check" "your gmail"

Note:- All the places where "your gmail"  mentioned in above commands
have to be replaced with your e mail address

Making changes in ZM Options 
Open sub menu ZM/Options/Email
Make changes as follows
Screenshot from 2016-09-04 13-06-45
To attach alarm videos to email body you will have to include %EV% as 
follows in the ZM/Options/Email/EMAIL_BODY

Screenshot from 2016-09-04 13-09-19

To create alarm videos you will have to tick the box against OPT_FFMPEG 
in ZM as follows
Screenshot from 2016-09-04 13-10-16
Creating a filter to send alarm email

you will have to create , save and run on the background to be enable 
to email alarms  as follows.

Screenshot from 2016-09-04 16-45-13