Changeset 5143
- Timestamp:
- 05/03/07 07:08:31 (1 year ago)
- Files:
-
- django/trunk/django/core/mail.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/mail.py
r5142 r5143 7 7 from email.Header import Header 8 8 from email.Utils import formatdate 9 from email import Charset 9 10 import os 10 11 import smtplib … … 12 13 import time 13 14 import random 15 16 # Don't BASE64-encode UTF-8 messages so that we avoid unwanted attention from 17 # some spam filters. 18 Charset.add_charset('utf-8', Charset.SHORTEST, Charset.QP, 'utf-8') 14 19 15 20 # Cache the hostname, but do it lazily: socket.getfqdn() can take a couple of
