mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix sending mail when the receipient is a list (as in sample tracking mail routines).
This commit is contained in:
@@ -572,8 +572,11 @@ def send_mail( frm, to, subject, body, config ):
|
||||
"""
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user