

def set_html(self, message, text_content=None, footer=None, print_html=None, formatted=None):
    'Attach message in the html portion of multipart/alternative'
    if (not formatted):
        formatted = get_formatted_html(self.subject, message, footer, print_html, email_account=self.email_account)
    if (not self.html_set):
        if text_content:
            self.set_text(expand_relative_urls(text_content))
        else:
            self.set_html_as_text(expand_relative_urls(formatted))
    self.set_part_html(formatted)
    self.html_set = True

dataset/ETHPy150Open frappe/frappe/frappe/email/email_body.py EMail.set_html/original