Skip to content

Commit 3885b35

Browse files
author
Yamil Asusta
committed
Merge pull request elbuo8#7 from jschneier/add-cc-bcc-fields
Add cc bcc fields
2 parents 1ec3102 + f729095 commit 3885b35

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
license='MIT',
1515
description='SendGrid Backend for Django',
1616
long_description=open('./README.rst').read(),
17-
install_requires=["sendgrid==0.5.1"],
17+
install_requires=["sendgrid==1.3.0"],
1818
)

sgbackend/mail.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def send_messages(self, emails):
5959
def _build_sg_mail(self, email):
6060
mail = sendgrid.Mail()
6161
mail.add_to(email.to)
62+
mail.add_cc(email.cc)
63+
mail.add_bcc(email.bcc)
6264
mail.set_text(email.body)
6365
mail.set_subject(email.subject)
6466
mail.set_from(email.from_email)

0 commit comments

Comments
 (0)