Skip to content

Commit b45a10a

Browse files
committed
Mailtrap: implement MailtrapPayload.set_reply_to
1 parent 1ef637c commit b45a10a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

anymail/backends/mailtrap.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ def add_recipient(
106106
def set_subject(self, subject):
107107
self.data["subject"] = subject
108108

109-
def set_reply_to(self, emails):
110-
self.unsupported_feature("Mailtrap does not support reply_to")
109+
def set_reply_to(self, emails: List[EmailAddress]):
110+
self.data["headers"]["Reply-To"] = ",".join(
111+
str(email.addr_spec) for email in emails
112+
)
111113

112114
def set_extra_headers(self, headers):
113115
self.data.setdefault("headers", {}).update(headers)

0 commit comments

Comments
 (0)