aboutsummaryrefslogtreecommitdiffstats
path: root/news2mail.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2018-04-03 12:07:48 +0200
committerMatěj Cepl <mcepl@cepl.eu>2019-10-02 12:29:50 +0200
commit19388fa2e3e6b02e7d7fd5c0b5dc9ee0cd9ef100 (patch)
treea6d0b16b12dee869478171931d11ab894d5f524d /news2mail.py
parent606078cabb24ddf1e2cb29175e6d7deae73f5749 (diff)
downloadpygn-19388fa2e3e6b02e7d7fd5c0b5dc9ee0cd9ef100.tar.gz
Network libraries accept bytes not str
Diffstat (limited to 'news2mail.py')
-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()