Skip to content

Commit 7b2b7b2

Browse files
Update mail.py
should be .set_tos(), not .add_tos()
1 parent 584e14b commit 7b2b7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sgbackend/mail.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _build_sg_mail(self, email):
6868

6969
# use smtpapi if recipient list provided, otherwise use standard to field
7070
if isinstance(email.to, list):
71-
mail.smtpapi.add_tos(email.to)
71+
mail.smtpapi.set_tos(email.to)
7272
else:
7373
mail.add_to(email.to)
7474

0 commit comments

Comments
 (0)