From 3750ba518281271a356aa2eee17e976ff6d5cf0e Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Sat, 10 Jun 2017 12:42:31 +0530 Subject: [PATCH] Changed the to and reply-to fields for EmailMessage to list, as it expects input of that type --- datacenterlight/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index dfe3ae8b..1c9fa7ec 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -130,9 +130,9 @@ class OrderView(TemplateView): } email_data = { 'subject': "Data Center Light Order from %s" % context['email'], - 'to': 'info@ungleich.ch', + 'to': ['info@ungleich.ch'], 'body': "\n".join(["%s=%s" % (k, v) for (k, v) in context.items()]), - 'reply_to': context['email'], + 'reply_to': [context['email']], } email = EmailMessage(**email_data) email.send()