mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Actually send error reports to the creator instead of lying and saying that we did.
This commit is contained in:
@@ -574,11 +574,9 @@ def send_mail( frm, to, subject, body, config ):
|
||||
"""
|
||||
Sends an email.
|
||||
"""
|
||||
header_to = to
|
||||
if isinstance( to, list ):
|
||||
header_to = ', '.join( to )
|
||||
to = listify( to )
|
||||
msg = MIMEText( body )
|
||||
msg[ 'To' ] = header_to
|
||||
msg[ 'To' ] = ', '.join( to )
|
||||
msg[ 'From' ] = frm
|
||||
msg[ 'Subject' ] = subject
|
||||
if config.smtp_server is None:
|
||||
@@ -613,8 +611,6 @@ def send_mail( frm, to, subject, body, config ):
|
||||
log.error( "No suitable authentication method was found: %s" % e )
|
||||
s.close()
|
||||
raise
|
||||
if isinstance( to, basestring ):
|
||||
to = [ to ]
|
||||
s.sendmail( frm, to, msg.as_string() )
|
||||
s.quit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user