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?
source
share