mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 10:21:05 +01:00
Copy emails to CC list when processing with get_email, for #744
This commit is contained in:
parent
671cdd19c3
commit
ce018d2ce5
@ -545,6 +545,18 @@ def ticket_from_message(message, queue, logger):
|
||||
sender=queue.from_address,
|
||||
fail_silently=True,
|
||||
)
|
||||
# copy email to all those CC'd to this particular ticket
|
||||
for cc in t.ticketcc_set.all():
|
||||
# don't duplicate email to assignee
|
||||
if t.assigned_to.email != cc.email_address:
|
||||
send_templated_mail(
|
||||
'updated_cc',
|
||||
context,
|
||||
recipients=cc.email_address,
|
||||
sender=queue.from_address,
|
||||
fail_silently=True,
|
||||
)
|
||||
|
||||
|
||||
return t
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user