Disable mail fonction website

Discussion in 'Installation/Configuration' started by mccharlet, Sep 25, 2016.

  1. mccharlet

    mccharlet Member HowtoForge Supporter


    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
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    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.

Share This Page