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
HTML E-mail
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 43
- Joined: Sat Feb 21, 2004 7:39 pm
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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,
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,
-
- Posts: 43
- Joined: Sat Feb 21, 2004 7:39 pm
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
http://www.zoneminder.com/forums/viewtopic.php?p=43600