From c722f8297b09dfff82783666b233c30e8a8d4ed7 Mon Sep 17 00:00:00 2001 From: joamag Date: Sat, 21 Mar 2020 17:36:28 +0000 Subject: [PATCH] Small TLS fix --- client_smtp/src/client_smtp/system.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client_smtp/src/client_smtp/system.py b/client_smtp/src/client_smtp/system.py index f857202343..18d96e0663 100644 --- a/client_smtp/src/client_smtp/system.py +++ b/client_smtp/src/client_smtp/system.py @@ -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) @@ -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 = {}):