hotfix mail

This commit is contained in:
Evarin 2019-08-07 17:29:59 +02:00
parent 3a65c2a815
commit 66c278341c

View file

@ -276,7 +276,9 @@ def feedback(request):
form = FeedbackForm(request.POST) form = FeedbackForm(request.POST)
if form.is_valid(): if form.is_valid():
objet = form.cleaned_data['objet'] 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( send_mail(
"[experiENS] "+ objet, "[experiENS] "+ objet,
message, message,