From 19388fa2e3e6b02e7d7fd5c0b5dc9ee0cd9ef100 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 3 Apr 2018 12:07:48 +0200 Subject: Network libraries accept bytes not str --- news2mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'news2mail.py') 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() -- cgit