From 49a8d20a482507506fbe9d8d0b79c5722b02b34e Mon Sep 17 00:00:00 2001 From: j Date: Tue, 26 Oct 2021 17:51:21 +0100 Subject: [PATCH] fix contact form --- app/contact/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/contact/views.py b/app/contact/views.py index 5f57d01..d142a6a 100644 --- a/app/contact/views.py +++ b/app/contact/views.py @@ -14,7 +14,7 @@ def index(request): message = 'From: %s\n\n%s' % (form.cleaned_data['email'], form.cleaned_data['message']) subject = 'Phantas.ma/polis contact message' from_ = settings.CONTACT_FROM_EMAIL - to = settings.CONTACT_TO_EMAIL + to = [settings.CONTACT_TO_EMAIL] msg = EmailMessage(subject, message, from_, to, reply_to=[form.cleaned_data['email']]) msg.send(fail_silently=True) context['submitted'] = True