Adding mail() function to EnvironmentTools.