code: def send(self, email=None):
          
          if email is None and self.send_as_one:
              self.smtp.send_message(
                  self.multipart, self.config['EMAIL'], self.addresses)
          elif email is not None and self.send_as_one is False:
              self.smtp.send_message(
                  self.multipart, self.config['EMAIL'], email)
          self.multipart = MIMEMultipart('alternative')
docs: send email message