diff --git a/finance/views.py b/finance/views.py index bf163bb..34283de 100644 --- a/finance/views.py +++ b/finance/views.py @@ -175,8 +175,8 @@ class InvoiceDetailView(APIView): text_content = plaintext.render(context) html_content = html.render(context) - msg = EmailMultiAlternatives(subject, text_content, [to], bcc=['dmitry.dolya@skillbox.ru']) - # msg.attach_alternative(html_content, "text/html") + msg = EmailMultiAlternatives(subject, text_content, to=[to], bcc=['dmitry.dolya@skillbox.ru']) + msg.attach_alternative(html_content, "text/html") msg.send() invoice.save()