From: Zac Medico Date: Mon, 16 Nov 2009 00:30:33 +0000 (-0000) Subject: Convert MIMEText body to string before sending. (trunk r14808) X-Git-Tag: v2.1.7.5~10 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=47fcea9e8280bd3d67569acb858936230415d797;p=portage.git Convert MIMEText body to string before sending. (trunk r14808) svn path=/main/branches/2.1.7/; revision=14831 --- 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))