Bug #291331 - Make send_mail() encode the unicode message as bytes before
authorZac Medico <zmedico@gentoo.org>
Wed, 4 Nov 2009 21:41:40 +0000 (21:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 4 Nov 2009 21:41:40 +0000 (21:41 -0000)
commit9d21b18670218f1932c7b68b0a64f9b2f4ab94ff
treebae1ca5caf540f3ffab970f05540de90bd9a450d
parent4f74255cfef37a2f26bb4aafd780c50d8f90b724
Bug #291331 - Make send_mail() encode the unicode message as bytes before
passing it to smtplib.SMTP.sendmail(), in order to avoid a UnicodeEncodeError
which SMTP.send() tries to encode the message a plain ascii.

svn path=/main/trunk/; revision=14776
pym/portage/mail.py