]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/utils/mail.py
Merged FAQ and About into the same template, and added a special folder markdownext...
[osqa.git] / forum / utils / mail.py
index b9dda303be41430fc4086849580f7e308747099b..4d11f854d710a625f9b5a5f690b51fe4faf87136 100644 (file)
@@ -102,15 +102,15 @@ def send_email(subject, recipients, template, context={}, sender=None, images=[]
 \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