Skip to content

Commit

Permalink
Add support reply_to parameter(from Django 1.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyaeremin committed Nov 20, 2018
1 parent 771ce6b commit ef71cf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mailqueue/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def _send(self):
msg = EmailMultiAlternatives(subject, text_content, from_email)

if self.reply_to:
msg.extra_headers.update({"reply-to": self.reply_to})
msg.reply_to = [email.strip() for email in self.reply_to.split(',')
if email.strip()]

if self.html_content:
html_content = self.html_content
Expand Down

0 comments on commit ef71cf8

Please sign in to comment.