mattupstate/flask-mail — pull request #53 by yasunori (2013-11-04 07:10:51+00:00)
Title: Add support for unicode characters in subject,from,reply-to

Hello,

I often use iso-2022-jp when send to some mobile phone.
Because iso-2022-jp is used traditionally for e-mail in Japan.
```
msg = Message('てすと', sender=('わたくし', 'admin@testtesttest.com'),
reply_to='返信先 ',
recipients=["to@testtesttest.com"], charset='shift_jis)
msg.body = 'てすとです'
```

I expected they are encoded by 'iso-2022-jp'.

The following are the result.

Charset of header was iso-2022-jp. This is just how I expected it.
```
Content-Type: text/plain; charset="iso-2022-jp"
```

But Subject, From, and Reply-To were encoded by utf-8.
```
From: =?utf-8?b?44KP44Gf44GP44GX?=
Subject: =?utf-8?b?44OG44K544OI?=\
Reply-To: =?utf-8?b?6L+U5L+h5YWI?=
```

I think it mostly works well. Actually, I could read the mail by Gmail, Thunderbird, and my iphone.
But some mobile phone's mail client can't display text encoded by utf-8.

The problem is that we can't set the encoding of Header.
I tried to fix this.