def send(self): msg = Email(subject=self.subject, body=self.text_content, html=self.html_content, user=self.user, recipient=self.to, from_address=self.from_address, headers = self.headers) msg.send(self.update_next_email_time)