Image path in e-mails problem

Support and queries relating to all previous versions of ZoneMinder
Locked
wheelbarrow
Posts: 43
Joined: Sat Feb 21, 2004 7:39 pm

Image path in e-mails problem

Post by wheelbarrow »

Hi,

Installed ZM from the latest ross cd.

Everything is working fine.

However if i set the incude alarm path in the e-mail i get the following

http://10.1.1.5/zm/zm.php?view=image&mi ... 373&fid=11

Which when i copy into the browser i get the following error

ZoneMinder Error

You do not have permissions to access this resource.
Please contact your adminstrator for details.

Close

what have i done wrong. any ideas.

Regards

Paul
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I suspect 'view=image' here should be 'view=frame'. If you cut and paste that is it the view you were after?

I'll fix it here but you should be able to tweak it in zmfilter.pl if you search for view=image. It used to be that but was changed a while back and i obviously missed it there.

Phil,
wheelbarrow
Posts: 43
Joined: Sat Feb 21, 2004 7:39 pm

Post by wheelbarrow »

Hi Phil,

I does indeed work if i replace that, how ever what i was looking for was a url for the image it's self.

This way i can put this in the e-mail.

<img src="location to image">

i will then get an image in the preview e-mail and can the delete if not required.

I'll have a look in the file and see if i can create a new e-mail option to do what i need.

Which file holds the list of actions for the %code% events.


Regards.

Paul
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It's all in zmfilter.pl

Phil,
wheelbarrow
Posts: 43
Joined: Sat Feb 21, 2004 7:39 pm

Post by wheelbarrow »

zoneminder wrote:It's all in zmfilter.pl

Phil,
Thanks Phil,

I got it doing what i wanted now, very nice coding in there.

I've nicked the bit that creates the path for image attachment and put in into the e-mail.

I now get a picture in outlook.


Thanks


Paul
Locked