commit/galaxy-central: natefoo: Fix sending mail when the receipient is a list (as in sample tracking mail routines).
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/d0c9c238ddbf/ changeset: d0c9c238ddbf user: natefoo date: 2011-08-24 21:33:07 summary: Fix sending mail when the receipient is a list (as in sample tracking mail routines). affected #: 1 file (93 bytes) --- a/lib/galaxy/util/__init__.py Wed Aug 24 14:42:56 2011 -0400 +++ b/lib/galaxy/util/__init__.py Wed Aug 24 15:33:07 2011 -0400 @@ -572,8 +572,11 @@ """ 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: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket