Skip to content

Commit ef71cf8

Browse files
committed
Add support reply_to parameter(from Django 1.8)
1 parent 771ce6b commit ef71cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mailqueue/models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def _send(self):
112112
msg = EmailMultiAlternatives(subject, text_content, from_email)
113113

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

117118
if self.html_content:
118119
html_content = self.html_content

0 commit comments

Comments
 (0)