code: def send_messages(self, email_messages):
          
          if not email_messages:
              return
  
          num_sent = 0
          for message in email_messages:
              if self._send(message):
                  num_sent += 1
  
          return num_sent
docs: Sends one or more EmailMessage objects and returns the number of
          email messages sent.