projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2028ae
)
Convert MIMEText body to string before sending.
author
Zac Medico
<zmedico@gentoo.org>
Wed, 11 Nov 2009 06:50:35 +0000
(06:50 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 11 Nov 2009 06:50:35 +0000
(06:50 -0000)
svn path=/main/trunk/; revision=14808
pym/portage/mail.py
patch
|
blob
|
history
diff --git
a/pym/portage/mail.py
b/pym/portage/mail.py
index 96bb38e833a60d752fc195dccfe6d6087fbb3150..42ed43b83a1500a5b585faf8d46795d1d618e88b 100644
(file)
--- 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))