From eb079bf3ff743881fd16f0800c7244023cac9107 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Apr 2026 14:27:34 +0000 Subject: [PATCH] corrected mail sending with attachment --- austritt/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/austritt/views.py b/austritt/views.py index 9d19209..865e2b4 100644 --- a/austritt/views.py +++ b/austritt/views.py @@ -208,7 +208,7 @@ class EvaFormView(LoginRequiredMixin, CookieWizardView): subject=f'EVA: Austritt {firstname} {lastname} {lastday}', body=mail_template.render(context), from_email=EVA_MAIL, - to=[EVA_MAIL], + to=[MAILS[department]['MAIL']], ) mail.attach(f'Rueckgabe_Arbeitsmittel_{firstname}_{lastname}.pdf', pdf_bytes, 'application/pdf') mail.send(fail_silently=False)