Ticket #26487: patch.diff

File patch.diff, 718 bytes (added by kchmiela, 9 years ago)

Patch

  • django/core/mail/backends/smtp.py

    a b  
    5656            })
    5757        try:
    5858            self.connection = connection_class(self.host, self.port, **connection_params)
     59            self.connection.ehlo()
    5960
    6061            # TLS/SSL are mutually exclusive, so only attempt TLS over
    6162            # non-secure connections.
    6263            if not self.use_ssl and self.use_tls:
    63                 self.connection.ehlo()
    6464                self.connection.starttls(keyfile=self.ssl_keyfile, certfile=self.ssl_certfile)
    6565                self.connection.ehlo()
    6666            if self.username and self.password:
Back to Top