Permalink
Browse files

fix for recipients_list, cc and bcc being a tuple

  • Loading branch information...
1 parent 84ecee1 commit f81243ba91b1f321da1956acd6d403057daebd97 @peterbe committed Sep 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tornado_utils/send_mail/send_email.py
@@ -391,11 +391,11 @@ def send_email(backend, subject, message, from_email, recipient_list,
Note: The API for this method is frozen. New code wanting to extend the
functionality should use the EmailMessage class directly.
"""
- if not isinstance(recipient_list, list):
+ if not isinstance(recipient_list, (list, tuple)):
recipient_list = [recipient_list]
- if bcc is not None and not isinstance(bcc, list):
+ if bcc is not None and not isinstance(bcc, (list, tuple)):
bcc = [bcc]
- if cc is not None and not isinstance(cc, list):
+ if cc is not None and not isinstance(cc, (list, tuple)):
cc = [cc]
connection = connection or get_connection(backend,
username=auth_user,

0 comments on commit f81243b

Please sign in to comment.