From 2d882a393c9b8aa3ec06f605dea220978b6fc456 Mon Sep 17 00:00:00 2001 From: Andreas Kotowicz Date: Fri, 9 Dec 2011 17:21:48 +0100 Subject: [PATCH] fix email problem with multiple addresses. --- helpdesk/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/lib.py b/helpdesk/lib.py index 0826b346..e30a2a85 100644 --- a/helpdesk/lib.py +++ b/helpdesk/lib.py @@ -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: