zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit 177a2e7c97c626bc53de6eef2606d1f7c2da550a
parent 622855cba32e158a1b0cacea44e21361685d2577
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 10 Sep 2020 14:15:11 +0200

Include hostname in SMTP object instance due to some bug in python3.7.

Diffstat:
zeitungsschau/feedemail.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zeitungsschau/feedemail.py b/zeitungsschau/feedemail.py @@ -139,9 +139,9 @@ def send(feed, to, smtphost="localhost", smtpport=None, ssl="False",\ s.sendmail(faddr, to, msg.as_string()) else: if ssl == "True": - s = smtplib.SMTP_SSL() + s = smtplib.SMTP_SSL(smtphost) else: - s = smtplib.SMTP() + s = smtplib.SMTP(smtphost) if smtpport != None: s.connect(smtphost, smtpport) else: