public function render_email_digest(email_digest $emaildigest) {
        $data = $emaildigest->export_for_template($this);
        return $this->render_from_template('message_email/' . $this->get_template_name(), $data);
    }