Commits

Nate Coraor  committed d0c9c23

Fix sending mail when the receipient is a list (as in sample tracking mail routines).

  • Participants
  • Parent commits dc5884c

Comments (0)

Files changed (1)

File lib/galaxy/util/__init__.py

     """
     Sends an email.
     """
+    header_to = to
+    if isinstance( to, list ):
+        header_to = ', '.join( to )
     msg = MIMEText( body )
-    msg[ 'To' ] = to
+    msg[ 'To' ] = header_to
     msg[ 'From' ] = frm
     msg[ 'Subject' ] = subject
     if config.smtp_server is None: