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})