def _send_message_py2(self, server, body, **params):  # pragma: nocover
        msg = ""
        msg += "From: %s\r\nTo: %s\r\n" % (params['from_addr'],
                                           ', '.join(params['to']))
        msg += "Cc: %s\r\n" % ', '.join(params['cc'])
        msg += "Bcc: %s\r\n" % ', '.join(params['bcc'])
        if params['subject_prefix'] not in [None, '']:
            msg += "Subject: %s %s\r\n\r\n" % (params['subject_prefix'],
                                               params['subject'])
        else:
            msg += "Subject: %s\r\n\r\n" % params['subject']
        msg += body + "\n"

        server.sendmail(params['from_addr'],
                        params['to'] + params['cc'] + params['bcc'],
                        msg)
dataset/ETHPy150Open datafolklabs/cement/cement/ext/ext_smtp.py/SMTPMailHandler._send_message_py2/original