Skip to content

Commit

Permalink
Fix MIMEText usage in galaxy.util
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Jan 14, 2016
1 parent 2f1dbee commit 95d00b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95d00b4

Please sign in to comment.