Kaydet (Commit) bcae045d authored tarafından Tim Graham's avatar Tim Graham Kaydeden (comit) GitHub

Refs #26487 -- Removed unneeded ehlo() calls in SMTP backend.

starttls(), login(), and other connection methods already call
the method as needed.
üst 0a9bd266
......@@ -66,9 +66,7 @@ class EmailBackend(BaseEmailBackend):
# TLS/SSL are mutually exclusive, so only attempt TLS over
# non-secure connections.
if not self.use_ssl and self.use_tls:
self.connection.ehlo()
self.connection.starttls(keyfile=self.ssl_keyfile, certfile=self.ssl_certfile)
self.connection.ehlo()
if self.username and self.password:
self.connection.login(force_str(self.username), force_str(self.password))
return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment