Fix permissions of tools file
Fix max files error.
Add smtp.php to capture local email sending.