Modified Mail Functionality with PHPMailer Class, other minor changes

Only helpdesk users can access stats