Email Test

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
slacker_900
Posts: 4
Joined: Fri Jan 05, 2007 3:58 pm
Location: Midlands, United Kingdom

Email Test

Post by slacker_900 »

Once you have configured all of the email settings and a filter, would it be possible to have a test email function to check that all of the smtp settings etc are working ok?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can do this now with what you have somewhat.
Create your filter (make sure you put a time constraint on it, If you don't you'll soon see why) the way you want it.
Select email.
Save the filter but don't select run in background just yet.
Now select your filter and click submit, you should get a list of any events that would get emailed to you (If you didn't put a time constrant this list may be long, and all of them would be emailed to you.... one at a time). Now hopefully you have the results you want, you may have to create an event so you have results.
Now you can click on the execute button. You should get your email if everything is properly setup. If not check your logs and make sure you have patched ZM so that the execute button really functions.
User avatar
Sir Veillance
Posts: 11
Joined: Tue Nov 13, 2007 3:44 am
Location: Germany

Post by Sir Veillance »

It seems like ZM only executes the filter if the corresponding flag has not been set yet, like Events.Emailed. If this flag is =1, then ZM won't send this event.

Is there a built-in procedure to reset these flags? At the moment, I have to edit the mysql table and set the flag=0 manually. Quite annoying, when you have to do it 50 times :?
Martin from Germany
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There is nothing built into the web UI.
We do it just as you have by updating the flag through a sql statement.
User avatar
Sir Veillance
Posts: 11
Joined: Tue Nov 13, 2007 3:44 am
Location: Germany

Post by Sir Veillance »

cordel wrote:There is nothing built into the web UI.
We do it just as you have by updating the flag through a sql statement.
but wouldn't it be nice to have a "Force" checkbox on the Event Filter page? :wink:
Martin from Germany
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Seeing how it's not part of daily operations, probably not, at least not enough to use realestate in the GUI. A SQL statement is simple and quick enough. Once you put the statement together it only takes a few seconds to rerun it.
User avatar
Sir Veillance
Posts: 11
Joined: Tue Nov 13, 2007 3:44 am
Location: Germany

Post by Sir Veillance »

cordel wrote:A SQL statement is simple and quick enough. Once you put the statement together it only takes a few seconds to rerun it.
..provided you are familiar with SQL.. and mysql.. and scripting.. and Linux-- :wink:
Martin from Germany
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I recommend Navicat, http://www.navicat.com/. It's not free (though I think there may be a free version) but you can just select a table, click on what you want to change and bingo your done. Likewise you can save queries to rerun later. I only started using it a few months ago but it's extremely handy.

Phpmyadmin is good also, just not quite so slick and takes a bit more setting up.
Phil
Post Reply