mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Merge pull request #1509 from dannon/release_16.01
Fix MIMEText usage in galaxy.util
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user