Example #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)
Example #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)
Example #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])
Example #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])
Example #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])
Example #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])