From 66c278341cfe583d3b751906ea89d4c554b801dd Mon Sep 17 00:00:00 2001 From: Evarin Date: Wed, 7 Aug 2019 17:29:59 +0200 Subject: [PATCH] hotfix mail --- avisstage/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/avisstage/views.py b/avisstage/views.py index 76d2596..ce7cee0 100644 --- a/avisstage/views.py +++ b/avisstage/views.py @@ -276,7 +276,9 @@ def feedback(request): form = FeedbackForm(request.POST) if form.is_valid(): objet = form.cleaned_data['objet'] - message = form.cleaned_data['message'] + header = "[From : %s <%s>]\n" % (request.user, + request.user.email) + message = header + form.cleaned_data['message'] send_mail( "[experiENS] "+ objet, message,