Poslat e-mail po registraci.
This commit is contained in:
parent
cec060d833
commit
d13b2a6552
1 changed files with 6 additions and 0 deletions
|
@ -1233,6 +1233,12 @@ def prihlaskaView(request):
|
||||||
err_logger.warn(msg + str(form_hash))
|
err_logger.warn(msg + str(form_hash))
|
||||||
r.save()
|
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)
|
return formularOKView(request)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue