1.6.15 split send mail to user and copy for dev

This commit is contained in:
SDE
2024-08-23 15:19:33 +03:00
parent c60b9942f6
commit f6ba0ab1ad
4 changed files with 42 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ def send_mail_found_matches_routes(route, data_Dict):
mail_sets = get_mail_send_options()
to = [route.owner.email, 'web@syncsystems.net']
to = [route.owner.email]
subject = _('Мы нашли исполнителя по Вашему объявлению!')
res = admin_send_mail_by_SMTPlib(
mail_sets,
@@ -67,6 +67,13 @@ def send_mail_found_matches_routes(route, data_Dict):
from_email=mail_sets['sender_email'], to=to,
html_content=html
)
to = ['web@syncsystems.net']
res = admin_send_mail_by_SMTPlib(
mail_sets,
subject=subject,
from_email=mail_sets['sender_email'], to=to,
html_content=html
)
return res