how to attach video to gmail alert mails.

Forum for questions and support relating to the 1.25.x releases only.
Locked
vinodtcr
Posts: 18
Joined: Fri Feb 25, 2011 2:37 pm
Location: India

how to attach video to gmail alert mails.

Post by vinodtcr »

I've configured zoneminder 1.25 on centos 5.9, and also configured postfix to send alert mails to gmail. Everything works fine, and now I want to attach video files to gmail alert mails. Is it possible?
licchende
Posts: 13
Joined: Thu Aug 09, 2012 8:19 am

Re: how to attach video to gmail alert mails.

Post by licchende »

I'm intrested too, I hope someone can help us :)
vinodtcr
Posts: 18
Joined: Fri Feb 25, 2011 2:37 pm
Location: India

Re: how to attach video to gmail alert mails.

Post by vinodtcr »

I got the solution after doing a long search in internet!

First configure the zm to send email alerts to gmail, create a filter to send the desired events as email alerts and make sure it works. If it works you will receive emails with event details in text without any attachments in gmail whenever the events occure which matches your filter. Now, follow the given below steps to attach image/video of events with email.

Open the zm web interface in browser ie. http://localahost/zm, then open Options->Email tab
In the EMAIL_BODY text box add %EIM% and %EV% variables to attach single image and a video of full event.

for example:

Hello,

An alarm has been detected on your installation of the ZoneMinder.

The details are as follows :-

Monitor : %MN%
Event Id : %EI%
Length : %EL%
Frames : %EF% (%EFA%)
Scores : t%EST% m%ESM% a%ESA%
Image : %EIM%
Video : %EV%

This alarm was matched by the %FN% filter and can be viewed at %EPS%

ZoneMinder


Also make sure that the following options are also configured:

Options->Image
OPT_FFMPEG - Checked
PATH_FFMPEG - /usr/bin/ffmpeg (Path depends on system)
FFMPEG_FORMATS - change the * from AVI to MPEG (* denotes default format for web and ** denotes default format for mobile device)

I think it helps!
dma_k
Posts: 27
Joined: Sat Jan 19, 2013 5:58 pm

Re: how to attach video to gmail alert mails.

Post by dma_k »

vinodtcr wrote:I've configured zoneminder 1.25 on centos 5.9, and also configured postfix to send alert mails to gmail. Everything works fine, and now I want to attach video files to gmail alert mails. Is it possible?
Don't forget to tick "Run filter in foreground" option. I have spent quite some time to find this out.
Locked