Пример #1
0
    def send_email(self, subject, message, from_email=None, *args, **kwargs):
        """ Sends an email to the current User email address.

        Internally, this wraps the django send_mail() function. Via sparks
        it allows to send the mail in a parallel thread.
        """

        if self.email:
            return send_mail(subject, message, from_email, [self.email], *args,
                             **kwargs)

        LOGGER.warning(u'%s: no e-mail address, did not send e-mail.',
                       self.username)
Пример #2
0
    def send_email(self, subject, message, from_email=None, *args, **kwargs):
        """ Sends an email to the current User email address.

        Internally, this wraps the django send_mail() function. Via sparks
        it allows to send the mail in a parallel thread.
        """

        if self.email:
            return send_mail(subject, message,
                             from_email, [self.email],
                             *args, **kwargs)

        LOGGER.warning(u'%s: no e-mail address, did not send e-mail.',
                       self.username)
Пример #3
0
    def email_user(self, subject, message, from_email=None):
        """ Sends an email to this User, [TODO: if not already done ?]. """

        send_mail(subject, message, from_email, [self.email])
Пример #4
0
 def email_user(self, subject, message, from_email=None):
     """ Sends an email to this User. """
     send_mail(subject, message, from_email, [self.email])
Пример #5
0
 def email_user(self, subject, message, from_email=None):
     """ Sends an email to this User. """
     send_mail(subject, message, from_email, [self.email])
Пример #6
0
    def email_user(self, subject, message, from_email=None):
        """ Sends an email to this User, [TODO: if not already done ?]. """

        send_mail(subject, message, from_email, [self.email])