Show More
@@ -49,7 +49,7 b' class STARTTLS(smtplib.SMTP):' | |||
|
49 | 49 | self._host = host |
|
50 | 50 | |
|
51 | 51 | def starttls(self, keyfile=None, certfile=None): |
|
52 |
if not self.has_extn( |
|
|
52 | if not self.has_extn("starttls"): | |
|
53 | 53 | msg = b"STARTTLS extension not supported by server" |
|
54 | 54 | raise smtplib.SMTPException(msg) |
|
55 | 55 | (resp, reply) = self.docmd(b"STARTTLS") |
General Comments 0
You need to be logged in to leave comments.
Login now