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