[sysadmin-bin] Output form_letter so we know what is being sent out to individuals



commit 68554d7f765fe5de8792417557b44c461825716e
Author: Andrea Veri <averi redhat com>
Date:   Tue May 3 19:44:10 2022 +0200

    Output form_letter so we know what is being sent out to individuals

 membership/foundation-operations.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index 689d7a5..3edd3e4 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -182,7 +182,7 @@ def send_form_letters(form_letter, email, name, *args):
         server = smtplib.SMTP("localhost")
         server.sendmail(msg['From'], [msg['To']], msg.as_string())
         server.quit()
-        print(f"Successfully sent email to { name } with email { email }")
+        print(f"Successfully sent { form_letter } to { name } with email { email }")
     except smtplib.SMTPException:
         print("ERROR: I wasn't able to send the email correctly, please check /var/log/maillog!")
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]