msg = EmailMessage(subject, body, from_email, [to_email]) msg.content_subtype = "html" msg.send()
How to add the header "reply to"?
You need to add a title Reply-Toto EmailMessage.
Reply-To
EmailMessage
headers = {'Reply-To': reply_email} msg = EmailMessage(subject, body, from_email, [to_email], headers=headers) msg.content_subtype = "html" msg.send()
According to Django 1.8, there is an argument that can be passed to a constructor EmailMessagewith a name reply_tothat will handle the header logic for you.
reply_to