'Attach message in the html portion of multipart/alternative'

def set_html(self, message, text_content=None, footer=None, print_html=None, formatted=None, inline_images=None, header=None):

    if (not formatted):
        formatted = get_formatted_html(self.subject, message, footer, print_html, email_account=self.email_account, header=header)
    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, inline_images)
    self.html_set = True
