From 24df9e4a93d74fae23d4d2a1c1f17394963e65cf Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 30 Aug 2021 14:24:08 +0200 Subject: [PATCH] bugfix in mail sending --- TODO | 6 ++++++ evapp/settings.py | 2 +- evapp/views.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index bd90a68..d672fcd 100644 --- a/TODO +++ b/TODO @@ -11,3 +11,9 @@ * Diensttelefon? * Language => Sprache + +* Maintainance-Anzeige im Debugmodus, damit niemand denkt, es würden mails verschickt. + +* logging in production? print landet nicht in der logdatei? + +* better error handling with mail sending. diff --git a/evapp/settings.py b/evapp/settings.py index 6cfeb45..9222c05 100644 --- a/evapp/settings.py +++ b/evapp/settings.py @@ -37,7 +37,7 @@ MAILS = { ], }, 'HR': { - 'MAIL': 'personal@wikimedia.de, eileen.miedtank@wikimedia.de', + 'MAIL': 'personal@wikimedia.de', 'DATA': [ 'department', 'team', 'language', ] diff --git a/evapp/views.py b/evapp/views.py index 4840549..0ad6948 100644 --- a/evapp/views.py +++ b/evapp/views.py @@ -138,7 +138,7 @@ class EvaFormView(LoginRequiredMixin, CookieWizardView): mail_template = get_template(f'evapp/department_mail.txt') if settings.MAILTEST: send_mail( - 'EVA: Neuzugang', + 'EVA: Neuzugang (MAILTEST)', mail_template.render(context), EVA_MAIL, [EVA_MAIL, contact],