Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
sklarsa committed Nov 8, 2023
1 parent 46d629e commit 58c88a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sendgrid_backend/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
MailSettings,
OpenTracking,
Personalization,
ReplyTo,
SandBoxMode,
Substitution,
TrackingSettings,
Expand Down Expand Up @@ -473,6 +472,8 @@ def _build_sg_mail(self, msg: EmailMessage) -> Dict:
)

if hasattr(msg, "reply_to_list") and SENDGRID_6:
from sendgrid.helpers.mail import ReplyTo

mail.reply_to_list = [
ReplyTo(*self._parse_email_address(e)) for e in msg.reply_to_list
]
Expand Down

0 comments on commit 58c88a0

Please sign in to comment.