Disable PHP Mail mail() using php.ini
Code snippet to disable the default php mail() function
This can be used to prevent emails unintentionally being sent
Code to be added to 'php.ini' in the sites root directory
ini_set('disable_functions','mail');
Advertisement
About
A snippet to disable the PHP mail function and reduce spam abuse.