def send_email(self): email = self.cleaned_data['email'] title = self.cleaned_data['title'] body = self.cleaned_data['body'] util.send_mail(title, body, [email]) FeaturedEmail.objects.create(channel=self.channel, title=title, body=body, email=email, sender=self.sender)
def send_email(self): email = self.cleaned_data['email'] title = self.cleaned_data['title'] body = self.cleaned_data['body'] util.send_mail(title, body, [email]) FeaturedEmail.objects.create( channel = self.channel, title = title, body = body, email = email, sender = self.sender)
def send_email(self, recipients, email_from=None, break_lines=False): util.send_mail(self.title, self.body, recipients, email_from, break_lines)