Page 1 of 1
how can I receive the ticket SUBJECT line as the email subje
Posted: Tue May 29, 2007 5:39 am
by ricksaul
Hi, can you tell me what I can change to receive the ticket SUBJECT line as the email subject . And also how I can add fields from the ticket into the subject of the email that is sent to the helpdesk staff..
thanks, Rick Saul
Posted: Tue May 29, 2007 8:38 am
by Klemen
In submit_ticket.php find
Code: Select all
@mail($email,$hesklang['new_ticket_submitted'],$message,$headers);
and change it to
Code: Select all
@mail($email,$subject,$message,$headers);
or even better to this so you know it's from Hesk:
Code: Select all
@mail($email,'[HESK] '.$subject,$message,$headers);
change subject line
Posted: Tue May 29, 2007 9:53 am
by ricksaul
Klemen changing the subject line to reflect the real job subject has worked brilliantly.. Can the same be done with the category? When I try to add category to the helpdesk email all I get is the category number ?
thanks, Rick Saul
Posted: Tue May 29, 2007 10:11 am
by Klemen
You'd have to get cat name that matches the ID number from the database. I might be able to help after Friday, remind me.
Can the category be added to the subject line
Posted: Fri Jun 01, 2007 7:05 am
by ricksaul
Hi Klemen, you asked me to remind you Friday about adding the category to the subject line.
Also would you have any links to help with mysql admin. My son is trying to install on a mac notebook and he also has no background in mysql so doesnt know how to find out or connect hesk to the mysql database. He has installed hesk, php, etc but is stuck on where to go from there
regards Rick
Posted: Mon Jun 04, 2007 9:30 am
by Klemen
Paste this code in the line above where you first use $category:
Code: Select all
$sql = "SELECT `name` FROM `hesk_categories` WHERE `id` = $category LIMIT 1";
$result = hesk_dbQuery($sql);
$res = hesk_dbFetchRow($result);
$category = $res[0];
Can the category be added to the subject line
Posted: Mon Jun 04, 2007 10:00 am
by ricksaul
Klemen thanks for this. I have tried adding to submit_ticket.php but am not sure exactly where to put it ..
attempt 1 did not work
attempt 2 error the submit new ticket page
Can you advise. thanks Rick
Posted: Mon Jun 04, 2007 10:02 am
by Klemen
You can put it just above the first
Code: Select all
$message=str_replace('%%NAME%%',$name,$message);
(line 153).
Can the category be added to the subject line
Posted: Mon Jun 04, 2007 10:44 am
by ricksaul
thanks Klemen .. this has worked really well.
regards Rick
Posted: Mon Oct 08, 2007 8:36 am
by tb@djh.dk
Klemen Stirn wrote:In submit_ticket.php find
Code: Select all
@mail($email,$hesklang['new_ticket_submitted'],$message,$headers);
and change it to
Code: Select all
@mail($email,$subject,$message,$headers);
or even better to this so you know it's from Hesk:
Code: Select all
@mail($email,'[HESK] '.$subject,$message,$headers);
What if I want both?
Posted: Mon Oct 08, 2007 9:06 am
by Klemen
Did you try the last code? I think if you did it would answer your question

Oooops
Posted: Mon Oct 08, 2007 10:46 am
by tb@djh.dk
I made this one work though
@mail($to = "
xxx@domainxx.dk",$hesklang['new_ticket_submitted '].$subject,$message,$headers);
thank you
Customize Staff E-mail on new ticket submission
Posted: Wed Dec 19, 2007 9:16 pm
by bcassaro
I am interested in making changes to the new_ticket_staff.txt to provide a quick summarization of the ticket with-in the e-mail.
Mainly, I would like to add the "body" of the message (what is the problem) along with the person's name, e-mail address, and custom field 1 and 2.
If possible, please assist.
Thank you,
Bryan Cassaro