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:
Ross Poulton
2011-03-05 03:29:01 +00:00
parent b31068caa9
commit b5da29dcfe
2 changed files with 12 additions and 5 deletions

View File

@ -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,