Add SMTPS support to logging.handlers.SMTPHandler

July 24, 2015
4:49 a.m.
Example of modification: old: smtp = smtplib.SMTP(self.mailhost, port, timeout=self._timeout) new: if self.smtps: smtp = smtplib.SMTP_SSL(self.mailhost, port, *self.smtps, timeout=self._timeout) else: smtp = smtplib.SMTP(self.mailhost, port, timeout=self._timeout) old: if self.secure is not None: smtp.ehlo() smtp.starttls(*self.secure) smtp.ehlo() new: smtp.ehlo() if self.tls: smtp.starttls(*self.tls) smtp.ehlo()
3526
Age (days ago)
3526
Last active (days ago)
0 comments
1 participants
participants (1)
-
jakedrummond@verizon.net