On Wed, Jan 05, 2005 at 10:23:23AM +0100, Wichert Akkerman wrote:
> > I am trying to figure out how to use an 'internationaled' To-header but
> > not succeeding so far. The basic documented approach does not work:
> >
> > >>> mail["From"]=email.Header.Header(, "utf-8")
You must separate the name to be encoded from non-encodable address:
From: "=?koi8-r?B?6dPMwc7P18Eg78zYx8E=?=" <[EMAIL PROTECTED]>
Copied from a real mail mesage.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Email-SIG mailing list
[email protected]
Your options:
http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com