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');
Supported By Cosmos Hosting