(self, emails)
return count
Comments
Comments
Comments
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 count
def send_messages ( self , emails ) : 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