def METHOD_NAME(self) -> EmailContent:
    if self._content.text:
        return EmailContent(body=self._error_template(self._content.text))
    # Get the domain from the 'From' address ..
    # and make a message id without the < > in the end
    csv_data = None
    domain = self._get_smtp_domain()
    images = {}
    if self._content.screenshots:
        images = {
            make_msgid(domain)[1:-1]: screenshot
            for screenshot in self._content.screenshots
        }
    # Strip any malicious HTML from the description
    # pylint: disable=no-member
    description = nh3.clean(
        self._content.description or "",
        tags=ALLOWED_TAGS,
        attributes=ALLOWED_ATTRIBUTES,
    )
    # Strip malicious HTML from embedded data, allowing only table elements
    if self._content.embedded_data is not None:
        df = self._content.embedded_data
        # pylint: disable=no-member
        html_table = nh3.clean(
            df.to_html(na_rep="", index=True, escape=True),
            # pandas will escape the HTML in cells already, so passing
            # more allowed tags here will not work
            tags=TABLE_TAGS,
            attributes=ALLOWED_TABLE_ATTRIBUTES,
        )
    else:
        html_table = ""
    call_to_action = __(app.config["EMAIL_REPORTS_CTA"])
    img_tags = []
    for msgid in images.keys():
        img_tags.append(
            f"""<div class="image">
                <img width="1000px" src="cid:{msgid}">
            </div>
            """
        )
    img_tag = "".join(img_tags)
    body = textwrap.dedent(
        f"""
        <html>
          <head>
            <style type="text/css">
              table, th, td {{
                border-collapse: collapse;
                border-color: rgb(200, 212, 227);
                color: rgb(42, 63, 95);
                padding: 4px 8px;
              }}
              .image{{
                  margin-bottom: 18px;
              }}
            </style>
          </head>
          <body>
            <div>{description}</div>
            <br>
            <b><a href="{self._content.url}">{call_to_action}</a></b><p></p>
            {html_table}
            {img_tag}
          </body>
        </html>
        """
    )
    if self._content.csv:
        csv_data = {__("%(name)s.csv", name=self._content.name): self._content.csv}
    return EmailContent(
        body=body,
        images=images,
        data=csv_data,
        header_data=self._content.header_data,
    )