
Email / Ticket Subject Field
Moderator: mkoch227
Don't fix if it ain't broke 

Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 46
- Joined: Sun May 10, 2009 3:44 pm
Emails Subject Flieds
Hi Klemen,
I would like to insert the client name again in the ticketing emails subject field. Please assist again as I have installed the latest version.
Regards.
I would like to insert the client name again in the ticketing emails subject field. Please assist again as I have installed the latest version.
Regards.
Have you tried using $tmpvar['name'] instead of $name?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 46
- Joined: Sun May 10, 2009 3:44 pm
Emails Subject Field
Hi Klemen,
No! I do nothing without you approving. I know to little and trust none but you. Smile...
Please indicate what I should change to what and in which file [for staff and client all emails]
Appreciated.
No! I do nothing without you approving. I know to little and trust none but you. Smile...
Please indicate what I should change to what and in which file [for staff and client all emails]
Appreciated.
Since you are such a supporter of Hesk development, let it be
--> STAFF NOTIFICATION OF NEW TICKET
In the submit_ticket.php and in admin/admin_submit_ticket.php change:
to:
--> CUSTOMER NOTIFICATION OF NEW TICKET
In the submit_ticket.php and in admin/admin_submit_ticket.php change:
to:
--> STAFF NOTIFICATION OF NEW CUSTOMER REPLY
In the reply_ticket.php change:
to:

--> STAFF NOTIFICATION OF NEW TICKET
In the submit_ticket.php and in admin/admin_submit_ticket.php change:
Code: Select all
$hesklang['new_ticket_submitted']
Code: Select all
$hesklang['new_ticket_submitted'].' by '.$ticket['name']
In the submit_ticket.php and in admin/admin_submit_ticket.php change:
Code: Select all
$hesklang['ticket_received']
Code: Select all
$hesklang['ticket_received'].' by '.$ticket['name']
In the reply_ticket.php change:
Code: Select all
$hesklang['new_reply_ticket']
Code: Select all
$hesklang['new_reply_ticket'].' by '.$ticket['name']
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Just tested it and works for me in v2.2
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Email / Ticket Subject Field
I am looking to add the ticket number to the subject line,
I replaced
with
but it did not work, what am I doing wrong?
I replaced
Code: Select all
$hesklang['ticket_received']
Code: Select all
$hesklang['ticket_received'].' - '.$ticket['trackid']
Re: Email / Ticket Subject Field
You didn't mention which file you're editing, but you might want to see if using $trackingID helps.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Email / Ticket Subject Field
Tried this in Version 2.3 and it didn't work. Oddly, it didn't seem to break it either. Just no change. So I'm going to try the other hack found here.
If this needs to be tweaked to work in 2.3, any suggestions would be appreciated. Thanks!
If this needs to be tweaked to work in 2.3, any suggestions would be appreciated. Thanks!

Klemen wrote:Since you are such a supporter of Hesk development, let it be![]()
--> STAFF NOTIFICATION OF NEW TICKET
In the submit_ticket.php and in admin/admin_submit_ticket.php change:to:Code: Select all
$hesklang['new_ticket_submitted']
--> CUSTOMER NOTIFICATION OF NEW TICKETCode: Select all
$hesklang['new_ticket_submitted'].' by '.$ticket['name']
In the submit_ticket.php and in admin/admin_submit_ticket.php change:to:Code: Select all
$hesklang['ticket_received']
--> STAFF NOTIFICATION OF NEW CUSTOMER REPLYCode: Select all
$hesklang['ticket_received'].' by '.$ticket['name']
In the reply_ticket.php change:to:Code: Select all
$hesklang['new_reply_ticket']
Code: Select all
$hesklang['new_reply_ticket'].' by '.$ticket['name']
- Lisa
Re: Email / Ticket Subject Field
Ahah! I started thinking about it, and realized that I use the email piping feature in 2.3, so I need to make these changes in the /inc/mail/hesk_pipe.php file instead. Changed the following and it's working great:
Changed:
to
Changed:
to:
Changed:
to:
Changed:
Code: Select all
/* Send e-mail */
hesk_mail($tmpvar['email'],$hesklang['ticket_received'],$msg);
Code: Select all
/* Send e-mail */
hesk_mail($tmpvar['email'],$hesklang['ticket_received'].' by '.$ticket['name'].' : '.$ticket['subject'],$msg);
Code: Select all
/* Send e-mail to staff */
hesk_mail($autoassign_owner['email'],$hesklang['ticket_assigned_to_you'],$msg);
Code: Select all
/* Send e-mail to staff */
hesk_mail($autoassign_owner['email'],$hesklang['ticket_assigned_to_you'].' by '.$ticket['name'].' : '.$ticket['subject'],$msg);
Changed:
Code: Select all
/* Send e-mail to staff */
$email=implode(',',$admins);
hesk_mail($email,$hesklang['new_ticket_submitted'],$msg);
Code: Select all
/* Send e-mail to staff */
$email=implode(',',$admins);
hesk_mail($email,$hesklang['new_ticket_submitted'].' by '.$ticket['name'].' : '.$ticket['subject'],$msg);
- Lisa
Re: Email / Ticket Subject Field
For better formatting, and to also add the ticket number, I changed all the email coding to the following. Worked great.
Enjoy! 
Code: Select all
hesk_mail($tmpvar['email'],$hesklang['ticket_received'].' ['.$ticket['trackid'].'] '.$ticket['name'].' ['.$ticket['subject'].']',$msg);
hesk_mail($autoassign_owner['email'],$hesklang['ticket_assigned_to_you'].' ['.$ticket['trackid'].'] '.$ticket['name'].' ['.$ticket['subject'].']',$msg);
hesk_mail($email,$hesklang['new_ticket_submitted'].' ['.$ticket['trackid'].'] '.$ticket['name'].' ['.$ticket['subject'].']',$msg);

- Lisa
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Re: Email / Ticket Subject Field
Perfect!
Re: Email / Ticket Subject Field
Thanks!
This is kinda fun. After tweaking, used another format that I like even better:
Looks like:
Ticket received [#12A-PHA-U179] Ticket Subject [Submitter Name]
This format seemed the most easy to read in my email client. But this code is very easy to tweak into any number of combinations, to whatever one prefers.
This is kinda fun. After tweaking, used another format that I like even better:
Code: Select all
hesk_mail($tmpvar['email'],$hesklang['ticket_received'].' [#'.$ticket['trackid'].'] '.$ticket['subject'].' ['.$ticket['name'].']',$msg);
Ticket received [#12A-PHA-U179] Ticket Subject [Submitter Name]
This format seemed the most easy to read in my email client. But this code is very easy to tweak into any number of combinations, to whatever one prefers.

hollandsedrop wrote:Perfect!
- Lisa
Re: Email / Ticket Subject Field
this is really helpful but I would also like to edit the e-mail message. I would like to figure out how to make the email come in like this...
The metadata
from: <user submitted e-mail>
To: <the correct help desk staff
Subject <name> has submitted <ticketid> <subject>
The message
A new Ticket has been submitted by <name><e-mail address>
Ticket Number:<ticket number>
Ticket Subject:<subject>
Yours Issue:
<message>
Manage this ticket
<url of ticket>
*DO NOT REPLY TO THIS E-MAIL*
This is an automated e-mail message sent from our support system. Do not reply to this e-mail as we won't receive your reply, use the link above for proper communication!
Yours sincerely,
The metadata
from: <user submitted e-mail>
To: <the correct help desk staff
Subject <name> has submitted <ticketid> <subject>
The message
A new Ticket has been submitted by <name><e-mail address>
Ticket Number:<ticket number>
Ticket Subject:<subject>
Yours Issue:
<message>
Manage this ticket
<url of ticket>
*DO NOT REPLY TO THIS E-MAIL*
This is an automated e-mail message sent from our support system. Do not reply to this e-mail as we won't receive your reply, use the link above for proper communication!
Yours sincerely,