code issue on libs/mail.py

Issue #1 resolved
Anonymous created an issue

== in libs/mail.py ==

{{{

!python

100 self.session = smtplib.SMTP(self.host) 101 if self.user and self.password: 102 self.session.login(self.user, self.password)

}}} It didn't work, I think it should be:

{{{

!python

100 self.session = smtplib.SMTP(self.host) 101 if self.user and self.password: 102 self.session.starttls() 103 self.session.login(self.user, self.password) }}}

and this one works.

Comments (2)

  1. Log in to comment