Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #114 from kostyaeremin/master
Browse files Browse the repository at this point in the history
Add support reply_to parameter(from Django 1.8)
  • Loading branch information
dstegelman authored Nov 30, 2018
2 parents 771ce6b + ef71cf8 commit 19b476d
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 19b476d

Please sign in to comment.