KevinTheJedi The way most people accomplish this is by either making a Canned Response and attaching it manually before closing the Ticket
Personally, I have images of three smileys (bad, neutral, good) in the canned response. These are links, for example https://myserver/evaluation.php?class=3.
The evaluation.php file writes to the file:
$file = "evaluation.txt";
$class = date("Y-m-d H:i:s")." / ".$_GET['class']."\n";
file_put_contents($file, $class, FILE_APPEND);
echo "<script>window.close();</script>";
Very simple and customizable according to your needs. For example, a ticket number can be inserted into a GET using a variable, as osTicket is very well prepared for this.