public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r14808 - main/trunk/pym/portage
@ 2009-11-11  6:50 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-11-11  6:50 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-11-11 06:50:35 +0000 (Wed, 11 Nov 2009)
New Revision: 14808

Modified:
   main/trunk/pym/portage/mail.py
Log:
Convert MIMEText body to string before sending.


Modified: main/trunk/pym/portage/mail.py
===================================================================
--- main/trunk/pym/portage/mail.py	2009-11-11 06:46:12 UTC (rev 14807)
+++ main/trunk/pym/portage/mail.py	2009-11-11 06:50:35 UTC (rev 14808)
@@ -133,7 +133,7 @@
 				myconn = smtplib.SMTP(mymailhost, mymailport)
 			if mymailuser != "" and mymailpasswd != "":
 				myconn.login(mymailuser, mymailpasswd)
-			myconn.sendmail(myfrom, myrecipient, message)
+			myconn.sendmail(myfrom, myrecipient, message.as_string())
 			myconn.quit()
 		except smtplib.SMTPException as e:
 			raise portage.exception.PortageException(_("!!! An error occured while trying to send logmail:\n")+str(e))




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-11  6:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11  6:50 [gentoo-commits] portage r14808 - main/trunk/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox