Show More
@@ -56,7 +56,7 b' class STARTTLS(smtplib.SMTP):' | |||||
56 |
|
56 | |||
57 | def starttls(self, keyfile=None, certfile=None, context=None): |
|
57 | def starttls(self, keyfile=None, certfile=None, context=None): | |
58 | if not self.has_extn("starttls"): |
|
58 | if not self.has_extn("starttls"): | |
59 |
msg = |
|
59 | msg = "STARTTLS extension not supported by server" | |
60 | raise smtplib.SMTPException(msg) |
|
60 | raise smtplib.SMTPException(msg) | |
61 | (resp, reply) = self.docmd("STARTTLS") |
|
61 | (resp, reply) = self.docmd("STARTTLS") | |
62 | if resp == 220: |
|
62 | if resp == 220: |
General Comments 0
You need to be logged in to leave comments.
Login now