mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-10 00:17:54 +02:00
Allow multiple e-mails to be entered for the queue CC email addresses. Separate with a comma. Closes GH-49.
This commit is contained in:
@ -102,7 +102,10 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
||||
"{{ ticket.ticket }} {{ ticket.title|safe }} %s" % t.subject
|
||||
).render(context)
|
||||
|
||||
if type(recipients) != list:
|
||||
if type(recipients) == str:
|
||||
if recipients.find(','):
|
||||
recipients = recipients.split(',')
|
||||
elif type(recipients) != list:
|
||||
recipients = [recipients,]
|
||||
|
||||
msg = EmailMultiAlternatives( subject_part,
|
||||
|
Reference in New Issue
Block a user