def METHOD_NAME(self):
    """Receiving a 'Invio File' with a broken XML sends an email
    to e_inv_notify_partner_ids"""
    incoming_mail = self._get_file(
        "POSTA CERTIFICATA_ Invio File 7339338 (broken XML).txt"
    )
    xml_error = (
        "Namespace prefix ns1 on Fattura is not defined, "
        "line 1, column 13 (<string>, line 1)"
    )
    outbound_mail_model = self.env["mail.mail"]
    error_mail_domain = [
        ("body_html", "like", xml_error),
        ("recipient_ids", "in", self.PEC_server.e_inv_notify_partner_ids.ids),
    ]
    error_mails_nbr = outbound_mail_model.search_count(error_mail_domain)
    self.assertFalse(error_mails_nbr)
    with mock.patch("odoo.addons.fetchmail.models.fetchmail.POP3") as mock_pop3:
        instance = mock_pop3.return_value
        instance.stat.return_value = (1, 1)
        instance.retr.return_value = ("", [incoming_mail], "")
        with mute_logger("odoo.addons.l10n_it_fatturapa_pec.models.fetchmail"):
            self.PEC_server.fetch_mail()
    error_mails = outbound_mail_model.search(error_mail_domain)
    self.assertEqual(len(error_mails), 1)
    self.assertIn(xml_error, error_mails.body_html)
    self.assertIn(xml_error, self.PEC_server.last_pec_error_message)