Changeset 5854
- Timestamp:
- 08/11/07 07:10:07 (1 year ago)
- Files:
-
- django/trunk/django/core/mail.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/mail.py
r5622 r5854 288 288 basetype, subtype = mimetype.split('/', 1) 289 289 if basetype == 'text': 290 attachment = SafeMIMEText(content, subtype, settings.DEFAULT_CHARSET) 290 attachment = SafeMIMEText(smart_str(content, 291 settings.DEFAULT_CHARSET), subtype, settings.DEFAULT_CHARSET) 291 292 else: 292 293 # Encode non-text attachments with base64.
