repeat email and name in message

This commit is contained in:
j 2022-04-25 17:26:42 +01:00
parent e275db6653
commit 88d65e95b5

View file

@ -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