SMTP disconnection error

Posted on
Mon Jan 09, 2017 5:08 am
aderrington offline
Posts: 111
Joined: Feb 03, 2015

SMTP disconnection error

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

Posted on
Tue Jan 10, 2017 3:47 am
Coolcaper offline
Posts: 286
Joined: Aug 30, 2013
Location: Australia

Re: SMTP disconnection error

I get the same.

Posted on
Tue Jan 10, 2017 8:45 pm
Ramias offline
Posts: 158
Joined: Nov 24, 2015

Re: SMTP disconnection error

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

Posted on
Tue Jan 10, 2017 8:50 pm
Ramias offline
Posts: 158
Joined: Nov 24, 2015

Re: SMTP disconnection error

I'll throw out another request:

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

Thanks

Posted on
Thu Jan 26, 2017 2:28 am
colinpartridge offline
Posts: 350
Joined: Jan 13, 2014
Location: London, UK

Re: SMTP disconnection error

Coolcaper wrote:
I get the same.

me too. :D

Posted on
Sat Feb 04, 2017 5:05 pm
nlagaros offline
Posts: 1616
Joined: Dec 20, 2010

Re: SMTP disconnection error

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest