WMDE
/
eva
forked from tohe/eva
7
1
Fork 0

corrected mail sending with attachment

This commit is contained in:
root 2026-04-08 14:27:34 +00:00
parent 5ff89e009e
commit eb079bf3ff
1 changed files with 1 additions and 1 deletions

View File

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