bugfix in mail sending
This commit is contained in:
parent
2b25c6d09d
commit
24df9e4a93
6
TODO
6
TODO
|
@ -11,3 +11,9 @@
|
||||||
* Diensttelefon?
|
* Diensttelefon?
|
||||||
|
|
||||||
* Language => Sprache
|
* 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.
|
||||||
|
|
|
@ -37,7 +37,7 @@ MAILS = {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'HR': {
|
'HR': {
|
||||||
'MAIL': 'personal@wikimedia.de, eileen.miedtank@wikimedia.de',
|
'MAIL': 'personal@wikimedia.de',
|
||||||
'DATA': [
|
'DATA': [
|
||||||
'department', 'team', 'language',
|
'department', 'team', 'language',
|
||||||
]
|
]
|
||||||
|
|
|
@ -138,7 +138,7 @@ class EvaFormView(LoginRequiredMixin, CookieWizardView):
|
||||||
mail_template = get_template(f'evapp/department_mail.txt')
|
mail_template = get_template(f'evapp/department_mail.txt')
|
||||||
if settings.MAILTEST:
|
if settings.MAILTEST:
|
||||||
send_mail(
|
send_mail(
|
||||||
'EVA: Neuzugang',
|
'EVA: Neuzugang (MAILTEST)',
|
||||||
mail_template.render(context),
|
mail_template.render(context),
|
||||||
EVA_MAIL,
|
EVA_MAIL,
|
||||||
[EVA_MAIL, contact],
|
[EVA_MAIL, contact],
|
||||||
|
|
Loading…
Reference in New Issue