\r
for recipient in recipients:\r
if isinstance(recipient, str):\r
- recipient_data = [('recipient', recipient)]\r
+ recipient_data = ('recipient', recipient)\r
recipient_context = None\r
elif isinstance(recipient, (list, tuple)) and len(recipient) == 2:\r
name, email = recipient\r
- recipient_data = [(name, email)]\r
+ recipient_data = (name, email)\r
recipient_context = None\r
elif isinstance(recipient, (list, tuple)) and len(recipient) == 3:\r
name, email, recipient_context = recipient\r
- recipient_data = [(name, email)]\r
+ recipient_data = (name, email)\r
else:\r
raise Exception('bad argument for recipients')\r
\r