mattupstate/flask-mail — pull request #52 by yasunori (2013-10-30 09:23:17+00:00)
Title: Add support for unicode characters in subject,from,reply-to

Hello,

I overwrite 'utf-8' charset, and set multibyte character to Subject, From, and Reply-to.
Because iso-2022-jp is used traditionally for e-mail in Japan.
```
charset.add_charset('utf-8', charset.SHORTEST, charset.BASE64, 'iso-2022-jp')
msg = Message('てすと', sender=('わたくし', 'admin@testtesttest.com'),
reply_to='返信先 ',
recipients=["yasunori@gotoh.me"], charset='utf-8')
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 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 iphone.
But some mobile phone's mail client can't display text encoded by utf-8. Then, some users can't read the subject of mail.

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