Ticket #6835: 6835.diff
File 6835.diff, 580 bytes (added by , 17 years ago) |
---|
-
django/core/mail.py
119 119 # Nothing to do if the connection is already open. 120 120 return False 121 121 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()) 123 123 if self.use_tls: 124 124 self.connection.ehlo() 125 125 self.connection.starttls()