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)
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])
def email_user(self, subject, message, from_email=None): """ Sends an email to this User. """ send_mail(subject, message, from_email, [self.email])