'add attachment'

def add_attachment(self, fname, fcontent, content_type=None, parent=None, content_id=None, inline=False):

    if (not parent):
        parent = self.msg_root
    add_attachment(fname, fcontent, content_type, parent, content_id, inline)
