From f6d2d947a1f815590452a0623d9d829504f1ad9c Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 28 Mar 2018 10:34:17 +0300 Subject: [PATCH] finance email --- finance/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finance/views.py b/finance/views.py index bf163bb..05be344 100644 --- a/finance/views.py +++ b/finance/views.py @@ -176,7 +176,7 @@ class InvoiceDetailView(APIView): html_content = html.render(context) msg = EmailMultiAlternatives(subject, text_content, [to], bcc=['dmitry.dolya@skillbox.ru']) - # msg.attach_alternative(html_content, "text/html") + msg.attach_alternative(html_content, "text/html") msg.send() invoice.save()