From 03a6fa2f7ec927625c64f980c3408ed395a9dcfc Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sat, 22 Aug 2020 22:08:43 +0200 Subject: Call sendmail with to, not recipient After f7a57c8 (Localize notification emails, 2018-05-17), the server.sendmail line was not updated to now send the to the email address but instead sends to (email, 'en') and as sendmail accepts an iterable an email is also send to 'en'. Signed-off-by: Lukas Fleischer --- aurweb/scripts/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py index 5b18a476..899f8acc 100755 --- a/aurweb/scripts/notify.py +++ b/aurweb/scripts/notify.py @@ -116,7 +116,7 @@ class Notification: server.login(user, passwd) server.set_debuglevel(0) - server.sendmail(sender, recipient, msg.as_bytes()) + server.sendmail(sender, to, msg.as_bytes()) server.quit() -- cgit v1.2.3-24-g4f1b