Hi,I had a same issue with automail and cron functions. For me the solution was to change the osticket website php runtime environment from FastCGI to SuPHP. So change this to SuPHP os eqvivalent, and everithing will be good, and the $data=file_get_contents('php://stdin') in automail.php is correct...I hope it helps to you....Kind regards,