예제 #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()
예제 #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)
예제 #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()
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)