Skip to content

Commit

Permalink
Small TLS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 21, 2020
1 parent 3d5e6f2 commit c722f82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client_smtp/src/client_smtp/system.py
Expand Up @@ -189,13 +189,13 @@ def send_mail(
self.login(session, parameters)
self.ehlo(session, parameters)

# retrieves the use tls flag
# retrieves the use TLS flag
tls = parameters.get("tls", False)

# in case the tls flag is active
# in case the TLS flag is active
if tls:
# tries to start tls and then runs the
# ehlo command (again, because of tls)
# tries to start TLS and then runs the
# ehlo command (again, because of TLS)
self.starttls(session, parameters)
self.ehlo(session, parameters)

Expand Down Expand Up @@ -451,9 +451,9 @@ def starttls(self, session, parameters = {}):
response = self.retrieve_response(request, session)

# checks the response for errors
self._check_response_error(response, (220,), "problem starting tls: ")
self._check_response_error(response, (220,), "problem starting TLS: ")

# upgrades the client connection to use SSL (tls)
# upgrades the client connection to use SSL (TLS)
self.client_connection.upgrade("ssl", {})

def vrfy(self, session, parameters = {}):
Expand Down

0 comments on commit c722f82

Please sign in to comment.