Django

Code

Changeset 5143

Show
Ignore:
Timestamp:
05/03/07 07:08:31 (2 years ago)
Author:
mtredinnick
Message:

Fixed #3472 -- Don't BASE64-encode UTF-8 (or ASCII) email messages.
Patch from smurf@smurf.noris.de.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/mail.py

    r5142 r5143  
    77from email.Header import Header 
    88from email.Utils import formatdate 
     9from email import Charset 
    910import os 
    1011import smtplib 
     
    1213import time 
    1314import random 
     15 
     16# Don't BASE64-encode UTF-8 messages so that we avoid unwanted attention from 
     17# some spam filters. 
     18Charset.add_charset('utf-8', Charset.SHORTEST, Charset.QP, 'utf-8') 
    1419 
    1520# Cache the hostname, but do it lazily: socket.getfqdn() can take a couple of