aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--news2mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news2mail.py b/news2mail.py
index a21e1ed..29f4271 100644
--- a/news2mail.py
+++ b/news2mail.py
@@ -174,7 +174,7 @@ class news2mail(object):
s = smtplib.SMTP(self.smtpserver)
s.set_debuglevel(self.verbose)
- s.sendmail(self.envelope, self.rcpt, self.message.as_string())
+ s.sendmail(self.envelope, self.rcpt, self.message.as_bytes())
s.quit()