chol
/
eva
forked from tohe/eva
1
0
Fork 0

bugfix in mail sending

This commit is contained in:
Benni Bärmann 2021-08-30 14:24:08 +02:00
parent 2b25c6d09d
commit 24df9e4a93
3 changed files with 8 additions and 2 deletions

6
TODO
View File

@ -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.

View File

@ -37,7 +37,7 @@ MAILS = {
],
},
'HR': {
'MAIL': 'personal@wikimedia.de, eileen.miedtank@wikimedia.de',
'MAIL': 'personal@wikimedia.de',
'DATA': [
'department', 'team', 'language',
]

View File

@ -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],