Ticket #26487: patch.diff
File patch.diff, 718 bytes (added by , 9 years ago) |
---|
-
django/core/mail/backends/smtp.py
a b 56 56 }) 57 57 try: 58 58 self.connection = connection_class(self.host, self.port, **connection_params) 59 self.connection.ehlo() 59 60 60 61 # TLS/SSL are mutually exclusive, so only attempt TLS over 61 62 # non-secure connections. 62 63 if not self.use_ssl and self.use_tls: 63 self.connection.ehlo()64 64 self.connection.starttls(keyfile=self.ssl_keyfile, certfile=self.ssl_certfile) 65 65 self.connection.ehlo() 66 66 if self.username and self.password: