From 3499c62516bd0e2c5b319effcfd00f6953308750 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Nov 2009 06:50:35 +0000 Subject: Convert MIMEText body to string before sending. svn path=/main/trunk/; revision=14808 --- pym/portage/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/mail.py b/pym/portage/mail.py index 96bb38e83..42ed43b83 100644 --- a/pym/portage/mail.py +++ b/pym/portage/mail.py @@ -133,7 +133,7 @@ def send_mail(mysettings, message): 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)) -- cgit v1.2.3-1-g7c22