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 <lfleischer@archlinux.org>
This commit is contained in:
Jelle van der Waa 2020-08-22 22:08:43 +02:00 committed by Lukas Fleischer
parent 169607f153
commit 03a6fa2f7e

View file

@ -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()