HTML E-mail

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
wheelbarrow
Posts: 43
Joined: Sat Feb 21, 2004 7:39 pm

HTML E-mail

Post by wheelbarrow »

Hi Phil,

Would it be possible to get ZM to generate html e-mails. this way i could the see the triger image in the message rather than as an attachement.

running zm1.19.2


Regards

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

Post by zoneminder »

Hi Paul,

At present I don't think there's a simple way but I'll add it to the ToDo list and try and get it in the next release.

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

Post by wheelbarrow »

Hi Phil,

I've been looking into this and have managed to get sendmail to include html code in an e-mail.

basicly after the From: addrerss in the header you need "Mime-Version: 1.0" and "Content-Type: text/html"

you can then include html tags in the e-mail and assuming that the e-mail client can deal with html then that's it.

however. i have yet to look into updating your code. What is needed is a url for the alarm image rather than the path.

There is a problem i forsee with this option in that the server where the images are stored would need to be accesable by the e-mail client.

however i think that this would be a good feature to beable to turn on off for e-mailed alerts.

Many thanks for the continued development.

Regards

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

Post by zoneminder »

Hi,

Images can be included inline in HTML mails so access to the server itself is not a problem. PHP itself is a bit thin in terms of MIME mail support but I do have a class somewhere I've used before and that will be included when this feature gets addressed. Sumertime is just not a very good season for new features!

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

Post by wheelbarrow »

Hi,

does this mean it's possible to do that now, or are you stilling to impliment it in a furture release.

Regards

Paul
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Post by ajpalm »

Try turning on inline image viewing :)

I use Thuderbird for my email and it displays the pictures inline. Which all I do is scroll to the bottom of the email and there area the pictures.

Maybe change to a open source email package? :)
carteriii
Posts: 65
Joined: Sun Oct 28, 2007 3:13 pm

Post by carteriii »

I realize this is an old thread, but since I found it when looking for similar posts and assume others will also, I'm going to post a link to my solution.

http://www.zoneminder.com/forums/viewtopic.php?p=43600
Post Reply