|
|
|
|
@ -170,12 +170,12 @@ class InvoiceDetailView(APIView): |
|
|
|
|
'price': invoice.price, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
subject, from_email, to = 'Выставлен новый счёт', 'robo@skillbox.ru', 'invoice.bill.opener.email' |
|
|
|
|
subject, to = 'Выставлен новый счёт', invoice.bill.opener.email |
|
|
|
|
|
|
|
|
|
text_content = plaintext.render(context) |
|
|
|
|
html_content = html.render(context) |
|
|
|
|
|
|
|
|
|
msg = EmailMultiAlternatives(subject, text_content, from_email, [to], bcc=['dmitry.dolya@skillbox.ru']) |
|
|
|
|
msg = EmailMultiAlternatives(subject, text_content, [to], bcc=['dmitry.dolya@skillbox.ru']) |
|
|
|
|
msg.attach_alternative(html_content, "text/html") |
|
|
|
|
msg.send() |
|
|
|
|
|
|
|
|
|
|