Ticket #6989: mail-local-hostname.diff

File mail-local-hostname.diff, 465 bytes (added by Franklin, 17 years ago)
  • django/core/mail.py

     
    3333        return self.get_fqdn()
    3434
    3535    def get_fqdn(self):
     36        if hasattr(settings, 'EMAIL_LOCAL_HOSTNAME'):
     37            return settings.EMAIL_LOCAL_HOSTNAME
    3638        if not hasattr(self, '_fqdn'):
    3739            self._fqdn = socket.getfqdn()
    3840        return self._fqdn
Back to Top