From 1fd577d3853d410a5b921ec2413d50eba5cff541 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 16 Jun 2020 12:14:01 +0000 Subject: [PATCH] Use smtp-from when sending SMTP message smtp-user is for authentication only. smtp-from was read from the config file but unused. --- gitsrht/blueprints/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/blueprints/email.py b/gitsrht/blueprints/email.py index f1005c5..9e54196 100644 --- a/gitsrht/blueprints/email.py +++ b/gitsrht/blueprints/email.py @@ -319,7 +319,7 @@ def send_email_send(owner, repo): print("Sending to recipients", recipients) for i, email in enumerate(emails): session.pop("commentary_{i}", None) - smtp.send_message(email, smtp_user, recipients) + smtp.send_message(email, smtp_from, recipients) smtp.quit() # TODO: If we're connected to a lists.sr.ht address, link to their URL -- 2.38.4