Skip to content

Commit

Permalink
Mailtrap: implement MailtrapPayload.set_reply_to
Browse files Browse the repository at this point in the history
  • Loading branch information
cahna committed Nov 17, 2024
1 parent 1ef637c commit b45a10a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions anymail/backends/mailtrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ def add_recipient(
def set_subject(self, subject):
self.data["subject"] = subject

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

def set_extra_headers(self, headers):
self.data.setdefault("headers", {}).update(headers)
Expand Down

0 comments on commit b45a10a

Please sign in to comment.