Changeset 7348 for django/trunk/django/core/mail.py
- Timestamp:
- 03/21/08 16:08:39 (10 months ago)
- Files:
-
- django/trunk/django/core/mail.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/mail.py
r7347 r7348 120 120 return False 121 121 try: 122 self.connection = smtplib.SMTP(self.host, self.port) 122 # If local_hostname is not specified, socket.getfqdn() gets used. 123 # For performance, we use the cached FQDN for local_hostname. 124 self.connection = smtplib.SMTP(self.host, self.port, 125 local_hostname=DNS_NAME.get_fqdn()) 123 126 if self.use_tls: 124 127 self.connection.ehlo()
