Skip to content

Commit 80224ae

Browse files
cahnamedmunds
andcommitted
Mailtrap backend: reply-to headers suggestions
Co-authored-by: Mike Edmunds <medmunds@gmail.com>
1 parent d2cc770 commit 80224ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

anymail/backends/mailtrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def set_subject(self, subject):
110110
self.data["subject"] = subject
111111

112112
def set_reply_to(self, emails: List[EmailAddress]):
113-
self.data["headers"]["Reply-To"] = ",".join(
114-
str(email.addr_spec) for email in emails
113+
self.data.setdefault("headers", {})["Reply-To"] = ", ".join(
114+
email.address for email in emails
115115
)
116116

117117
def set_extra_headers(self, headers):

0 commit comments

Comments
 (0)