def mail_admins(subject, message, fail_silently=False, connection=None, html_message=None):
 if (not settings.ADMINS):
  return
 mail = EmailMultiAlternatives(('%s%s' % (settings.EMAIL_SUBJECT_PREFIX, subject)), message, settings.SERVER_EMAIL, [a[1] for a in settings.ADMINS], connection=connection)
 if html_message:
  mail.attach_alternative(html_message, 'text/html')
 mail.send(fail_silently=fail_silently)

def mail_admins ( subject , message , fail_silently = False , connection = None , html_message = None ) : if ( not settings . ADMINS ) : return mail = EmailMultiAlternatives ( ( '%s%s' % ( settings . EMAIL_SUBJECT_PREFIX , subject ) ) , message , settings . SERVER_EMAIL , [ a [ 1 ] for a in settings . ADMINS ] , connection = connection ) if html_message : mail . attach_alternative ( html_message , 'text/html' ) mail . send ( fail_silently = fail_silently )
sends a message to the admins .