Esempio n. 1
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()
Esempio n. 2
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)
Esempio n. 3
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()
Esempio n. 4
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)
Esempio n. 5
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:
         if self._from_email:
             module.send(
                 phone, message, sms_from=self._from_email, **self._kwargs)
         else:
             module.send(phone, message, **self._kwargs)
Esempio n. 6
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)
Esempio n. 7
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)
Esempio n. 8
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)
Esempio n. 9
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)
Esempio n. 10
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)
Esempio n. 11
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)
Esempio n. 12
0
 def _send(self):
     module = import_module(self._provider)
     message = clean_html(self._message)
     for _id in self._recipient_list:
         module.send(_id, message, _from=self._from_email, **self._kwargs)
Esempio n. 13
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)
Esempio n. 14
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)