fix email problem with multiple addresses.

This commit is contained in:
Andreas Kotowicz 2011-12-09 17:21:48 +01:00
parent 885c03c514
commit 2d882a393c

View File

@ -102,7 +102,7 @@ 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) == str:
if type(recipients) == str or type(recipients) == unicode:
if recipients.find(','):
recipients = recipients.split(',')
elif type(recipients) != list: