From 3725b9049c17e74806b1407e5e430e47220ee371 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 4 Feb 2019 13:28:41 -0500 Subject: [PATCH] fix template strings --- fosspay/email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fosspay/email.py b/fosspay/email.py index f9f5e46..b05ac11 100644 --- a/fosspay/email.py +++ b/fosspay/email.py @@ -101,7 +101,7 @@ def send_new_donation(user, donation): }))) message['Subject'] = "New donation on fosspay!" message['From'] = _cfg("smtp-from") - message['To'] = f"{_cfg('your-name')} <_cfg('your-email')>" + message['To'] = f"{_cfg('your-name')} <{_cfg('your-email')}>" message['Date'] = format_datetime(localtime()) smtp.sendmail(_cfg("smtp-from"), [ _cfg('your-email') ], message.as_string()) smtp.quit() @@ -124,7 +124,7 @@ def send_cancellation_notice(user, donation): }))) message['Subject'] = "A monthly donation on fosspay has been cancelled" message['From'] = _cfg("smtp-from") - message['To'] = f"{_cfg('your-name')} <_cfg('your-email')>" + message['To'] = f"{_cfg('your-name')} <{_cfg('your-email')}>" message['Date'] = format_datetime(localtime()) smtp.sendmail(_cfg("smtp-from"), [ _cfg('your-email') ], message.as_string()) smtp.quit()