summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage_mail.py b/pym/portage_mail.py
index 4e56ca74c..b3b3dd86d 100644
--- a/pym/portage_mail.py
+++ b/pym/portage_mail.py
@@ -67,7 +67,7 @@ def send_mail(mysettings, message):
# user wants to use a sendmail binary instead of smtp
if mymailhost[0] == os.sep and os.path.exists(mymailhost):
fd = os.popen(mymailhost+" -f "+myfrom+" "+myrecipient, "w")
- fd.write(mymessage.as_string())
+ fd.write(message.as_string())
if fd.close() != None:
sys.stderr.write("!!! %s returned with a non-zero exit code. This generally indicates an error.\n" % mymailhost)
else: