Version of script: 0.94
Hosting company:djh.dk
URL of phpinfo.php:?
URL of session_test.php:?
What terms did you try when SEARCHING for a solution: I tried using the send mail staff from the submit.php and put it into admin_move_categor.php
Write your message below:
Hi
I have removed the Category and Priority in the submit.php page form. And thats works fine. As the category will always be set to Default and priority will always be set to low.
But then we want to be able to send mail to staff when Moving category. on the admin_ticket.php page, as an escalation, because we have one person logging all the calls, which will set priority and move category so it goes to the right IT-staff. At the same time we will change prioroty if necessary.
Any good ideas of how to do it, all my fantastic ideas have so far failed, but I am not an expert when it comes to PHP either

Or can you tell me what page I would set the e-mail staff code?
I have basicly just put in this code like this;
/* Get e-mail message for customer */
$fp=fopen('emails/new_ticket_staff.txt','r');
$message=fread($fp,filesize('emails/new_ticket_staff.txt'));
fclose($fp);
$message=str_replace('%%NAME%%',$name,$message);
$message=str_replace('%%SUBJECT%%',$subject,$message);
$message=str_replace('%%TRACK_ID%%',$trackingID,$message);
$message=str_replace('%%TRACK_URL%%',$trackingURL_admin,$message);
$message=str_replace('%%SITE_TITLE%%',$hesk_settings['site_title'] ,$message);
$message=str_replace('%%SITE_URL%%',$hesk_settings['site_url'] ,$message);
/* Send e-mail to staff */
$email=implode(',',$admins);
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
@mail($email,$hesklang['new_ticket_submitted'],$message,$headers);
Thanks in advance
Tor