diff --git a/bda/views.py b/bda/views.py index 3097afe3..69f47da3 100644 --- a/bda/views.py +++ b/bda/views.py @@ -488,10 +488,10 @@ def buy_revente(request, spectacle_id): 'vendeur': revente.seller.user } send_custom_mail( - 'bda-buy-shotgun', - recipient_list=[revente.seller.user.email], + 'bda-buy-shotgun', + 'bda@ens.fr', + [revente.seller.user.email], context=context, - from_email='bda@ens.fr' ) return render(request, "bda-success.html", {"seller": revente.attribution.participant.user, diff --git a/gestioncof/views.py b/gestioncof/views.py index 9aaf18a3..aa021beb 100644 --- a/gestioncof/views.py +++ b/gestioncof/views.py @@ -435,9 +435,8 @@ def registration(request): profile = profile_form.save() if profile.is_cof and not was_cof: send_custom_mail( - "welcome", [member.email], + "welcome", "cof@ens.fr", [member.email], context={'member': member}, - from_email='cof@ens.fr' ) # Enregistrement des inscriptions aux événements for form in event_formset: