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