From 7c91907e6eb6ba55d73daa10dc1cf4adfbfc97bc Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Mon, 23 Oct 2017 23:18:01 -0400 Subject: [PATCH] Changed contact form formatting --- main/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/views.py b/main/views.py index f06b872..3070031 100644 --- a/main/views.py +++ b/main/views.py @@ -26,7 +26,7 @@ def contact(request): result = False if name is not None and email is not None and subject is not None and body is not None: result = mail.send_mail('OACPL CONTACT: %(subject)s' % locals(), body, settings.EMAIL_HOST_USER, [settings.EMAIL_CONTACT], - html_message=url_fix_render_to_string('email.html', {'content': 'Someone has messaged you via the website contact form!

Subject:
%(subject)s
From: %(name)s (%(email)s)

%(body)s' % locals(), 'signature': ' '})) + html_message=url_fix_render_to_string('email.html', {'content': 'Someone has messaged you via the website contact form!

Subject:
%(subject)s
From: %(name)s <%(email)s>

%(body)s' % locals(), 'signature': ' '})) return JsonResponse({'success': True if result else False})