email not working in ZM

Support and queries relating to all previous versions of ZoneMinder
Locked
antar
Posts: 35
Joined: Mon Mar 20, 2006 1:32 am

email not working in ZM

Post by antar »

I get the below msg in the log. i have an SMTP defined and NET:SMTP is installed and so is MIME::Lite


Use of uninitialized value in pattern match (m//) at /usr/local/bin/zmfilter.pl line 755.
Use of uninitialized value in pattern match (m//) at /usr/local/bin/zmfilter.pl line 770.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 795.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 796.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 797.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 798.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 799.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 800.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 801.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 802.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 803.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 804.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 805.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 806.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 807.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 808.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 809.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 810.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 811.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 812.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 813.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 814.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 815.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 816.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 817.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 818.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 819.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 858.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 860.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Looks like you might be missing something in your definitions in your mail syntax. Check your definitions and make sure you have all the syntax correct.

Regards,
Corey
antar
Posts: 35
Joined: Mon Mar 20, 2006 1:32 am

Post by antar »

issue solved with this

from another posting

The problem turned out to be that the default value of ZM_EMAIL_TXT is missing a double quote (") at the end of it. This results in $email_subject and $email_body not being set because the initialization statement in zmfilter.pl fails:

( $email_subject, $email_body ) = ZM_EMAIL_TEXT =~ /subject\s*=\s*"([^\n]*)".*body\s*=\s*"(.*)"/ms;

Adding the closing quote to fixed this. I checked the zm_create.sql script and confirmed that it's missing. It's also missing from ZM_MESSAGE_TXT too but I'm not using that yet."
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I remember something about that now that you mention it. Glad you got it going.
Cheers,
Corey
Maxxer
Posts: 9
Joined: Thu Mar 23, 2006 4:24 pm

Post by Maxxer »

antar wrote:( $email_subject, $email_body ) = ZM_EMAIL_TEXT =~ /subject\s*=\s*"([^\n]*)".*body\s*=\s*"(.*)"/ms;
I have this exact line in zmfilter.pl (ZM 1.22.0) but it's not sending emails. zmfilter log just says it's going to create the mail but then nothing happens.

Did I miss something?
Locked