Page 1 of 1

smtp email notification help

Posted: Thu May 20, 2010 3:13 pm
by mattzmojo
Hello, I am a newbie here. I am running Zoneminder on an Ubuntu 10.04 system and my goal is to enable email notification with attachments of the triggered events.

I am using smtp using gmail. I tried to follow a guide that I found online.
I guess i just dont understand what I am doing wrong to make my system send out emails any time there is a triggered event.


I was able to test successfully sending out an email through the terminal.
echo "this is a test" | mail -s "test email" myemail@email.com

I did add the following to the zmfilter.pl
if ( ZM_NEW_MAIL_MODULES )
{
### Create the multipart container
my $mail = MIME::Lite->new (
From => myemailaddress@gmail.com,
To => myemailaddress@gmail.com,
Subject => $subject,
Type => "multipart/mixed"
);

Thanks for any help.