Changed the to and reply-to fields for EmailMessage to list, as it expects input of that type

This commit is contained in:
M.Ravi 2017-06-10 12:42:31 +05:30
parent 9f2f0f7db3
commit 3750ba5182

View file

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