Page 1 of 1

SMTP disconnection error

PostPosted: Mon Jan 09, 2017 5:08 am
by aderrington
Hi,

This looks like a great plugin and will be great for me, So thank you for creating it!

However i currently have an issue with the SMTP side of things, When an alert is sent i get the following:

Code: Select all
   
   Hikvision                       [Mon Jan  9 11:02:17 2017] Back door cam: LineCrossing OPEN
   Hikvision Error                 [Mon Jan  9 11:02:23 2017] Cannot email alert, <class 'smtplib.SMTPServerDisconnected'>: Back door cam
   Hikvision                       [Mon Jan  9 11:02:33 2017] Back door cam: LineCrossing CLOSED


I am using exactly the same details for the SMTP server as Indigo is using (and various e-mail apps)
I've turned on the dubugging but that isn't providing any more information for the SMTP issue.

Do you have any idea what might be happening?

Many thanks,
Andrew

Re: SMTP disconnection error

PostPosted: Tue Jan 10, 2017 3:47 am
by Coolcaper
I get the same.

Re: SMTP disconnection error

PostPosted: Tue Jan 10, 2017 8:45 pm
by Ramias
I was having an issue with email because my local SMTP relay is set to allow anything but I have not set up authentication (postfix on my mac... don't know how :)).

So at line 330 I inserted a new line thus (new 330 and 331 shown (basically an if statement to check of UserName is populated; it would be great if you could add this or something similar to the next release):

Code: Select all
if self.SMTPUserName:
     server.login(self.SMTPUserName, str(self.SMTPPassword))


I also need to refer to my SMTP relay by name vs IP address. I think that is a function of smtplib in python.

But other than that email is now working.

Thank you

Re: SMTP disconnection error

PostPosted: Tue Jan 10, 2017 8:50 pm
by Ramias
I'll throw out another request:

Can you allow us to configure the subject line for email snapshot actions?

Thanks

Re: SMTP disconnection error

PostPosted: Thu Jan 26, 2017 2:28 am
by colinpartridge
Coolcaper wrote:
I get the same.

me too. :D

Re: SMTP disconnection error

PostPosted: Sat Feb 04, 2017 5:05 pm
by nlagaros
New version posted that may help with some of these issues:

Download here: http://vulture.lagaros.com:8000/wordpress/hikvision-cameras/

colinpartridge wrote:
Coolcaper wrote:
I get the same.

me too. :D