*, task_instance: TaskInstance | TaskInstancePydantic, exception, task: BaseOperator
) -> None:
    """
    Send alert email with exception information.
    :param task_instance: the task instance
    :param exception: the exception
    :param task: task related to the exception
    :meta private:
    """
    subject, html_content, html_content_err = task_instance.get_email_subject_content(exception, task=task)
    assert task.email
    try:
        send_email(task.email, subject, html_content)
    except Exception:
        send_email(task.email, subject, html_content_err)
def _get_email_subject_content(