From d13b2a6552ee9a6aa992662dc14ce4f25468689c Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Wed, 4 Aug 2021 18:03:37 +0200 Subject: [PATCH] Poslat e-mail po registraci. --- seminar/views/views_all.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index 22095fb1..a12bbc98 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -1233,6 +1233,12 @@ def prihlaskaView(request): err_logger.warn(msg + str(form_hash)) r.save() + send_mail( + subject="Registrace na M&M", + message=f"Tento e-mail byl právě zaregistrován na mam.matfyz.cz.", # TODO: Dovymyslet text. + from_email="registrace@mam.mff.cuni.cz", # FIXME: Chceme to mít radši tady, nebo v nastavení? + recipient_list=list([fcd['email']]), + ) return formularOKView(request)