original_docstring: mail note to the to_recipient and the cc_recipient
docstring: mail note to the to_recipient and the cc_recipient
docstring_tokens: mail note to the to_recipient and the cc_recipient
code: def mail(note,
           sender,
           recipients,
           cc_recipients=[],
           attachments=[],
           subject = '',
           verbosity = 0):
     """mail note to the to_recipient and the cc_recipient"""
     if verbosity  > 1:
        msgb("SENDING EMAIL")
     note = [x.rstrip() for x in note]
     body = '\n'.join(note)
     att = []
     for  attachment in attachments:
        att.append( (attachment, os.path.basename(attachment)) )
     try:
        _send_email(recipients,
                    sender,
                    subject,
                    body,
                    att,
                    cc_recipients,
                    verbosity)
     except:
        die("Sending email failed")
     return 0
code_tokens: def mail ( note , sender , recipients , cc_recipients = [ ] , attachments = [ ] , subject = '' , verbosity = 0 ) : if verbosity > 1 : msgb ( "SENDING EMAIL" ) note = [ x . rstrip ( ) for x in note ] body = '\n' . join ( note ) att = [ ] for attachment in attachments : att . append ( ( attachment , os . path . basename ( attachment ) ) ) try : _send_email ( recipients , sender , subject , body , att , cc_recipients , verbosity ) except : die ( "Sending email failed" ) return 0
short_docstring: mail note to the to_recipient and the cc_recipient
short_docstring_tokens: mail note to the to_recipient and the cc_recipient
comment: """mail note to the to_recipient and the cc_recipient"""