Thankyou SOOOOO MUCH! I've spent hours banging my head against the wall over this. This quick replacement of code saved my life. I am running version 1.30.4Simpler wrote: ↑Sun Nov 20, 2016 7:59 pm I just run into this same problem after upgrading from 1.29.0 to 1.30.0 on Linux Mint 17.2 (based on Ubuntu 14.04).
I've been beating my head against a wall all day trying to figure this out until I ran across this post.
The message that I was getting in the logs with ZoneMinder 1.30.0 was:
Can't send email: SMTP Failed to connect to mail server: Connection refused at /usr/bin/zmfilter.pl line 918.
After I edited line 918 fromtoCode: Select all
$mail->send();
and restarting zoneminder, I was miraculously able to get notifications.Code: Select all
$mail->send('sendmail','/usr/sbin/ssmtp',$Config{ZM_EMAIL_ADDRESS});
The wiki at https://wiki.zoneminder.com/How_to_get_ ... Zoneminder says that this is no longer needed with 1.30.0, but this is incorrect.
Thank you so much for posting this.
Also, CHECKING THE BOX ON, for this part in the wiki, also helped a lot, wiki is a little confusing. SSMTP_MAIL = ON!