finance email

remotes/origin/yandex_rebiling
Andrey 8 years ago
parent 3d1ab96d51
commit f4204913b2
  1. 8
      finance/signals.py

@ -20,9 +20,8 @@ def invoice_signal(instance, **kwargs):
msg = EmailMessage( msg = EmailMessage(
'Вам выставлен новый счёт', 'Вам выставлен новый счёт',
instance.get_comment(), instance.get_comment(),
settings.EMAIL_HOST_USER, to=[instance.yandex_pay.cps_email],
[instance.yandex_pay.cps_email], bcc=[instance.bill.opener.email],
[instance.bill.opener.email],
reply_to=[instance.bill.opener.email], reply_to=[instance.bill.opener.email],
) )
msg.send() msg.send()
@ -51,8 +50,7 @@ def invoice_signal(instance, **kwargs):
'''Вам открыт доступ к курсу "%s", вы можете перейти по ссылке и '''Вам открыт доступ к курсу "%s", вы можете перейти по ссылке и
ознакомиться с материалами %s/course/%s''' ознакомиться с материалами %s/course/%s'''
% (course.title, settings.DOMAIN, course.slug), % (course.title, settings.DOMAIN, course.slug),
'robo@skillbox.ru', to=[instance.bill.user.email],
[instance.bill.user.email],
bcc=[instance.bill.opener.email], bcc=[instance.bill.opener.email],
reply_to=[instance.bill.opener.email], reply_to=[instance.bill.opener.email],
) )

Loading…
Cancel
Save