Show More
@@ -52,7 +52,7 b' class STARTTLS(smtplib.SMTP):' | |||||
52 | if not self.has_extn("starttls"): |
|
52 | if not self.has_extn("starttls"): | |
53 | msg = b"STARTTLS extension not supported by server" |
|
53 | msg = b"STARTTLS extension not supported by server" | |
54 | raise smtplib.SMTPException(msg) |
|
54 | raise smtplib.SMTPException(msg) | |
55 |
(resp, reply) = self.docmd( |
|
55 | (resp, reply) = self.docmd("STARTTLS") | |
56 | if resp == 220: |
|
56 | if resp == 220: | |
57 | self.sock = sslutil.wrapsocket( |
|
57 | self.sock = sslutil.wrapsocket( | |
58 | self.sock, |
|
58 | self.sock, |
General Comments 0
You need to be logged in to leave comments.
Login now