Commit 9e3f0f39 authored by Openscop's avatar Openscop

[+] [Instruction] Mettre en copie les admins techniques lors de l'envoi des...

[+] [Instruction] Mettre en copie les admins techniques lors de l'envoi des rappels de pièces manquantes par Cronjob
parent 34e12de0
......@@ -70,6 +70,9 @@ def envoyer_alerte_dossier(jour, manifestation):
connection = get_connection(use_tls=True, **email_config) # utiliser le EMAIL_BACKEND
send_mail(subject=html.unescape(subject), message=html.unescape(message), from_email=sender_email,
recipient_list=[recipient.email], connection=connection)
if settings.ADMINS:
send_mail(subject=html.unescape(subject), message=html.unescape(message), from_email=sender_email,
recipient_list=[admin[1] for admin in settings.ADMINS], connection=connection)
Notification.objects.create(user=recipient, manif=manifestation, subject=subject,
content_object=Site.objects.get_current())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment