From ef71cf8434f16e19546e4f8fc8e089a7bb01fcae Mon Sep 17 00:00:00 2001 From: kostyaeremin Date: Tue, 20 Nov 2018 14:11:49 +1000 Subject: [PATCH] Add support reply_to parameter(from Django 1.8) --- mailqueue/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailqueue/models.py b/mailqueue/models.py index bca3485..12cd743 100644 --- a/mailqueue/models.py +++ b/mailqueue/models.py @@ -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