Add mail() function to PCEnvironmentTools