diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2018-04-03 12:07:48 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2019-10-02 12:29:50 +0200 |
commit | 19388fa2e3e6b02e7d7fd5c0b5dc9ee0cd9ef100 (patch) | |
tree | a6d0b16b12dee869478171931d11ab894d5f524d /news2mail.py | |
parent | 606078cabb24ddf1e2cb29175e6d7deae73f5749 (diff) | |
download | pygn-19388fa2e3e6b02e7d7fd5c0b5dc9ee0cd9ef100.tar.gz |
Network libraries accept bytes not str
Diffstat (limited to 'news2mail.py')
-rw-r--r-- | news2mail.py | 2 |
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() |