Skip to content

Commit 303fbfc

Browse files
author
Rich Leland
committed
Update reply to to match API format
1 parent c663f45 commit 303fbfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sparkpost/django/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, message):
3333
formatted['bcc'] = message.bcc
3434

3535
if hasattr(message, 'reply_to') and message.reply_to:
36-
formatted['reply_to'] = message.reply_to
36+
formatted['reply_to'] = ','.join(message.reply_to)
3737

3838
if isinstance(message, EmailMultiAlternatives):
3939
for alternative in message.alternatives:

test/django/test_message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def test_attachment():
7777
if at_least_version('1.8'):
7878
def test_reply_to():
7979
expected = dict(
80-
reply_to=['replyto@example.com']
80+
reply_to='replyone@example.com,[email protected]'
8181
)
8282
expected.update(base_expected)
8383

84-
assert message(reply_to=['replyto@example.com']) == expected
84+
assert message(reply_to=['[email protected]', 'replytwo@example.com']) == expected

0 commit comments

Comments
 (0)