code: def get_mime_message(self):
          
          message = MIMEText(
              "<html>" +
              self.get_email_header() +
              get_email_content(self.content_file) +
              self.get_email_footer() +
              "</html>", "html"
          )
          message["subject"] = self.email_subject
          return message
docs: Gets email MIME message
  
          :return: Email formatted as HTML ready to be sent