code: def send_messages(self, emails):
          '''
          Comments
          '''
          if not emails:
              return
  
          count = 0
          for email in emails:
              mail = self._build_sg_mail(email)
              try:
                  self.sg.client.mail.send.post(request_body=mail)
                  count += 1
              except HTTPError as e:
                  if not self.fail_silently:
                      raise
          return counf send_messages(self, emails):
          '''
          Comments
          '''
          if not emails:
              return
  
          count = 0
          for email in emails:
              mail = self._build_sg_mail(email)
              try:
                  self.sg.client.mail.send.post(request_body=mail)
                  count += 1
              except HTTPError as e:
                  if not self.fail_silently:
                      raise
          return count
docs: Comments