def send(self,<EOL>sender,<EOL>recipients,<EOL>cc=None,<EOL>bcc=None,<EOL>subject='<STR_LIT>',<EOL>body='<STR_LIT>',<EOL>attachments=None,<EOL>content='<STR_LIT:text>'):
if not self.connected:<EOL><INDENT>self._logger.error(('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'))<EOL>return False<EOL><DEDENT>try:<EOL><INDENT>message = Message(sender,<EOL>recipients,<EOL>cc,<EOL>bcc,<EOL>subject,<EOL>body,<EOL>attachments,<EOL>content)<EOL>self._smtp.sendmail(message.sender,<EOL>message.recipients,<EOL>message.as_string)<EOL>result = True<EOL>self._connected = False<EOL>self._logger.debug('<STR_LIT>')<EOL><DEDENT>except Exception:  <EOL><INDENT>self._logger.exception('<STR_LIT>')<EOL>result = False<EOL><DEDENT>return result<EOL>
Sends the email

        :param sender: The server of the message
        :param recipients: The recipients (To:) of the message
        :param cc: The CC recipients of the message
        :param bcc: The BCC recipients of the message
        :param subject: The subject of the message
        :param body: The body of the message
        :param attachments: The attachments of the message
        :param content: The type of content the message [text/html]

        :return: True on success, False otherwise