ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.17k stars 1.23k forks source link

Empty email body #3708

Closed mfaroukg closed 1 year ago

mfaroukg commented 1 year ago

Describe Your Environment

Describe the bug The email received using OPT_EMAIL body is empty

To Reproduce Steps to reproduce the behavior:

  1. Go to Options.
  2. Tick OPT_EMAIL option to enable
  3. Go to Filters
  4. Create a proper filter that works in the background and send the following: subject: ZoneMinder: Alarm from *** - %MN%-%EI% %EC% body: ZM alarm detected : Name of the monitor : %MN% Number of events for the monitor in the last hour : %MEH% Cause of the event : %EC% Time of the event : %ET% Attach first alarmed event image: %EI1% Attach (first) event image with the highest score : %EIM% Path to the event stream: %EPS%
  5. Setup the ssmtp application
  6. Alarm generated
  7. receive email with correct subject but no email body

Expected behavior Expected to see the text and photos attached as per version 1.36.xx

Debug Logs "5/15/23, 9:32:12 AM GMT+1",zmfilter_3,326749,INF,"Notification email sent to [info@example].com",zmfilter.pl,'- "5/15/23, 9:32:12 AM GMT+1",zmfilter_3,326749,INF,"Attaching '/var/cache/zoneminder/events/1/2023-05-15/25675/00006-capture.jpg' which is 23858 bytes",zmfilter.pl,'- "5/15/23, 9:32:12 AM GMT+1",zmfilter_3,326749,INF,"Attaching '/var/cache/zoneminder/events/1/2023-05-15/25675/00005-capture.jpg' which is 23867 bytes",zmfilter.pl,'-

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

connortechnology commented 1 year ago

Latest should fix this. You might want to consider switching to html body so that inline images work...