Fix missing comma

This commit is contained in:
Kumi 2021-05-30 08:02:54 +02:00
parent a7bc888a64
commit 7066feb5c3

View file

@ -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()