Hi, I'm a website was hacked and use for SPAM I don't know if it's possible to disable the mail function only for one website Best regards
Assuming the site/spam script is running php, try setting `disable_functions = mail` in Custom php.ini settings for that site. That might help, though the site/script may be using smtp directly rather than the mail() function, or could be in another language (perl is also common for such scripts). It would probably be better to just clean up / update the site and reset passwords.