Disable mail functions in php BY.htaccess

I want to disable mail functions in PHP using .htaccess by throwing the entire project file. I need to stop all emails sent by the system in my project, so there are many files in my project that use the function mail(), so is there a way disable mail functions? I can’t access php.ini, so it’s better to do this with.htaccess

in .htaccessI am writing this code but not working:

  php_value  disable_functions  mail

this did not work, but in some other way disable the mail function using .htaccess?

+5
source share
2 answers

PHP configuration directive .htaccess server configuration. webserver. php.ini .

ini_set('disable_functions','mail');
+7

All Articles