Added from_address to EmailMessage

This commit is contained in:
M.Ravi 2017-06-13 04:39:30 +05:30
parent a60e799e08
commit 83802a0a52

View file

@ -295,6 +295,7 @@ class IndexView(CreateView):
} }
email_data = { email_data = {
'subject': "Data Center Light Order from %s" % context['email'], 'subject': "Data Center Light Order from %s" % context['email'],
'from_address': '(datacenterlight) datacenterlight Support <support@datacenterlight.ch>',
'to': ['info@ungleich.ch'], 'to': ['info@ungleich.ch'],
'body': "\n".join(["%s=%s" % (k, v) for (k, v) in context.items()]), 'body': "\n".join(["%s=%s" % (k, v) for (k, v) in context.items()]),
'reply_to': [context['email']], 'reply_to': [context['email']],