<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_email(self, send_to, attachment_paths=None, fail_silently=True, *args, **kwargs):
 """ Sends email to recipient based on self object parameters. @param fail_silently: When it’s False, msg.send() will raise an smtplib.SMTPException if an error occurs. @param send_to: recipient email @param args: additional args passed to EmailMessage @param kwargs: kwargs passed to EmailMessage @param attachment_paths: paths to attachments as received by django EmailMessage.attach_file(path) method @return: number of sent messages """

        msg = self.get_message_object(send_to, attachment_paths, *args, **kwargs)
        msg.content_subtype = self.content_subtype

        try:
            self.sent = msg.send()
        except SMTPException, e:
            if not fail_silently:
                raise
            logger.error(u'Problem sending email to %s: %s', send_to, e)

        return self.sent