Fix missing comma
This commit is contained in:
parent
a7bc888a64
commit
7066feb5c3
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class MailView(ContextMixin):
|
||||||
|
|
||||||
def send(self, subject, recipient, context={}, attachments=[], sender=None, cc=[], bcc=[], text_from_html=False):
|
def send(self, subject, recipient, context={}, attachments=[], sender=None, cc=[], bcc=[], text_from_html=False):
|
||||||
text = self.render_to_text(text_from_html, **context)
|
text = self.render_to_text(text_from_html, **context)
|
||||||
email = EmailMultiAlternatives(subject, text, sender, [recipient], cc=cc, bcc=bcc + DEFAULT_BCC_EMAILS attachments=attachments)
|
email = EmailMultiAlternatives(subject, text, sender, [recipient], cc=cc, bcc=bcc + DEFAULT_BCC_EMAILS, attachments=attachments)
|
||||||
if html := self.render_to_html(**context):
|
if html := self.render_to_html(**context):
|
||||||
email.attach_alternative(html, "text/html")
|
email.attach_alternative(html, "text/html")
|
||||||
email.send()
|
email.send()
|
Loading…
Reference in a new issue