how to attach video to gmail alert mails.
how to attach video to gmail alert mails.
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?
Re: how to attach video to gmail alert mails.
I'm intrested too, I hope someone can help us
Re: how to attach video to gmail alert mails.
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!
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!
Re: how to attach video to gmail alert mails.
Don't forget to tick "Run filter in foreground" option. I have spent quite some time to find this out.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?