Ticket #6989: mail-local-hostname.diff
File mail-local-hostname.diff, 465 bytes (added by , 17 years ago) |
---|
-
django/core/mail.py
33 33 return self.get_fqdn() 34 34 35 35 def get_fqdn(self): 36 if hasattr(settings, 'EMAIL_LOCAL_HOSTNAME'): 37 return settings.EMAIL_LOCAL_HOSTNAME 36 38 if not hasattr(self, '_fqdn'): 37 39 self._fqdn = socket.getfqdn() 38 40 return self._fqdn