def METHOD_NAME(
    self,
    uid,
    status,
    email_to,
    file_path,
    current_type,
    current_value,
    files=[],
    email_from=None,
):
    if not os.environ.get(
        "JUPYTERHUB_API_TOKEN"
    ) is None and "app.naas.ai" in os.environ.get("JUPYTERHUB_URL", ""):
        if _.get(naascredits.connect().get_balance(), "balance") <= 0:
            print(
                "🛑 You are out of credits and therefore cannot send notifications.",
                file=sys.stderr,
            )
            return
    if n_env.notif_api is None:
        jsn = {"id": uid, "type": "notification error", "error": "not configured"}
        if self.logger is not None:
            self.logger.error(jsn)
        else:
            print(jsn)
        return jsn
    content = ""
    file_link = f"{n_env.user_url}/naas/downloader?url={file_path}"
    tmp_path = cpath(file_path)
    if current_type == t_asset or current_type == t_notebook:
        content = f'The file <a href="{file_link}">{tmp_path}</a> <br/>'
        content += f"Accesible at this url:<br/> {encode_proxy_url(current_type)}/{current_value}<br/>"
    elif current_type == t_scheduler:
        cron_string = pretty_cron.prettify_cron(current_value)
        content = f'The file <a href="{file_link}">{tmp_path}</a><br/>'
        content += f"who run {cron_string}<br/>"
    content += f"Is {status}.<br/><br/>"
    content += "Check the Logs on your manager below :<br/>"
    status_url = f"{encode_proxy_url(t_asset)}/naas_{status}.png"
    message_bytes = file_path.encode("ascii")
    base64_bytes = base64.b64encode(message_bytes)
    file_path_base64 = base64_bytes.decode("ascii")
    link_url = f"{n_env.user_url}/naas/?filter={file_path_base64}"
    logo_url = f"{encode_proxy_url(t_asset)}/naas_logo.png"
    try:
        data = {
            "title": "Naas manager notification",
            "subject": f"{current_type.capitalize()} {status}",
            "from": email_from,
            "email": ",".join(email_to) if isinstance(email_to, list) else email_to,
            "content": content,
            "custom_vars": {
                "URL_HOME": encode_proxy_url(),
                "URL_LOGO": logo_url,
                "ALT_LOGO": "Naas Manager LOGO",
                "URL_IMAGE": status_url,
                "ALT_IMAGE": status,
                "URL_LINK": link_url,
            },
        }
        req = None
        if len(files) > 0:
            files = {}
            for file in files:
                abs_path = os.path.abspath(os.path.join(os.getcwd(), file))
                try:
                    files[file] = open(abs_path, "rb")
                except Exception as err:
                    print(err)
            req = requests.post(
                url=f"{n_env.notif_api}/status",
                headers=self.headers,
                files=files,
                json=data,
            )
        else:
            req = requests.post(
                url=f"{n_env.notif_api}/status",
                headers=self.headers,
                json=data,
            )
        req.raise_for_status()
        jsn = req.json()
        return jsn
    except Exception as err:
        if self.logger is not None:
            self.logger.error(
                {"id": uid, "type": "notification error", "error": str(err)}
            )
        else:
            print(err)