Exemplo n.º 1
0
 def _send(self):
     module = import_module(self._provider)
     message = clean_html(self._message)
     for phone in self._recipient_list:
         if self._from_email:
             module.send(
                 phone, message, sms_from=self._from_email, **self._kwargs)
         else:
             module.send(phone, message, **self._kwargs)
Exemplo n.º 2
0
 def _send_html_message(self):
     msg = EmailMultiAlternatives(
         self._subject, clean_html(self._message), cc=self._cc,
         from_email=self._from_email, to=self._recipient_list,
         bcc=self._bcc, connection=self._get_connection(), **self._kwargs
     )
     msg.attach_alternative(self._get_msg_with_track(), "text/html")
     self._attach_files(msg)
     msg.send()
Exemplo n.º 3
0
 def _send(self):
     self._provider = self._provider or self.provider
     module = import_module(self._provider)
     message = clean_html(self._message)
     for phone in self._recipient_list:
         options = self._kwargs.copy()
         options['event'] = self._kwargs.pop('event', self._subject)
         if self._from_email:
             options['app'] = self._from_email
         module.send(phone, message, **options)
Exemplo n.º 4
0
    def _send(self):
        message = clean_html(self._message)

        options = self._kwargs.copy()
        options.update(
            message=message,
            event=self._kwargs.pop('event', self._subject)
        )
        if self._from_email:
            options['app'] = self._from_email

        module = import_module(self._provider)

        for address in self._recipient_list:
            module.send(address, **options)
Exemplo n.º 5
0
 def _send(self):
     self.debug('Provider', self._provider or self.provider)
     self.debug('Message', clean_html(self._message))
     self.debug('Recipients', self._recipient_list)
     self.debug('Sms from', self._from_email)
     self.debug('Additional params', self._kwargs)
Exemplo n.º 6
0
 def _send(self):
     self.debug('Provider', self._provider or self.provider)
     self.debug('Message', clean_html(self._message))
     self.debug('Recipients', self._recipient_list)
     self.debug('Event', self._subject)
     self.debug('App', self._from_email)
Exemplo n.º 7
0
 def _send(self):
     self.debug("Provider", self._provider or self.provider)
     self.debug("Message", clean_html(self._message))
     self.debug("Recipients", self._recipient_list)
     self.debug("Sms from", self._from_email)
     self.debug("Additional params", self._kwargs)