Ticket #6835: 6835.diff

File 6835.diff, 580 bytes (added by PhiR, 7 years ago)

proper patch against SVN

  • django/core/mail.py

     
    119119            # Nothing to do if the connection is already open.
    120120            return False
    121121        try:
    122             self.connection = smtplib.SMTP(self.host, self.port)
     122            self.connection = smtplib.SMTP(self.host, self.port, local_hostname=DNS_NAME.get_fqdn())
    123123            if self.use_tls:
    124124                self.connection.ehlo()
    125125                self.connection.starttls()
Back to Top