Specifying _charset
changes the Content-Transfer-Encoding
and Content-Type
>>> import datetime
>>> from email.MIMEText import MIMEText
>>> body = "helloworld"
>>> msg = MIMEText(body, 'plain', _charset='iso-8859-1')
>>> msg['Subject'] = 'asdf'
>>> msg['From'] = 'name <username@example.com>'
>>> msg['Date'] = datetime.datetime.now().strftime('%a, %d %b %Y %H:%M:%S %z')
>>> print msg
From nobody Sun Oct 13 06:22:32 2013
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Subject: asdf
From: name <username@example.com>
Date: Sun, 13 Oct 2013 06:22:30
helloworld