Merge pull request #1509 from dannon/release_16.01

Fix MIMEText usage in galaxy.util
This commit is contained in:
John Chilton
2016-01-14 11:23:35 -05:00
+1 -1
View File
@@ -1190,7 +1190,7 @@ def send_mail( frm, to, subject, body, config ):
Sends an email.
"""
to = listify( to )
msg = email_mime_text( body.encode( 'ascii', 'replace' ) )
msg = email_mime_text.MIMEText( body.encode( 'ascii', 'replace' ) )
msg[ 'To' ] = ', '.join( to )
msg[ 'From' ] = frm
msg[ 'Subject' ] = subject