From 88d65e95b534540fa038145e95109fd0e806f3fb Mon Sep 17 00:00:00 2001 From: j Date: Mon, 25 Apr 2022 17:26:42 +0100 Subject: [PATCH] repeat email and name in message --- app/contact/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/contact/views.py b/app/contact/views.py index a97dd55..af4e565 100644 --- a/app/contact/views.py +++ b/app/contact/views.py @@ -34,6 +34,7 @@ def index(request): name = data['name'] email = data['email'] message = data['message'] + message = "Name: %s\nEmail: %s\n\n%s" % (name, email, message) subject = '{} has left a message on brixton-timeline'.format(name) from_ = settings.CONTACT_FROM_EMAIL to = settings.CONTACT_TO_EMAIL