25👍
You’ll want to add a Reply-To
header to the EmailMessage
.
headers = {'Reply-To': reply_email}
msg = EmailMessage(subject, body, from_email, [to_email], headers=headers)
msg.content_subtype = "html"
msg.send()
16👍
As of Django 1.8 there is an argument that can be passed into the constructor of EmailMessage
named reply_to
that will handle the headers logic for you.
- Python split url to find image name and extension
- Django – how can I access the form field from inside a custom widget
- Does uWSGI need to be restarted when Django code changes?
Source:stackexchange.com