Email / Ticket Subject Field

Helpdesk for my helpdesk software

Moderator: mkoch227

southernmoney
Posts: 46
Joined: Sun May 10, 2009 3:44 pm

Email / Ticket Subject Field

Post by southernmoney »

Latest version

Hi Klemen,

When the auto email is send it displays the subject field as: "New Support Ticket Submitted"

Is there a way by which the subject field of the email can also include the "name" of the client.

For example: "New Support Ticket Submitted - John Joy"

Is this also possible for the reply emails.

It helps a lot in quick identifying emails of specific clients.

Best Wishes

jvz

Southern Money
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In the submit_ticket.php you can change

Code: Select all

$hesklang['new_ticket_submitted']
to

Code: Select all

$hesklang['new_ticket_submitted'].' by '.$name
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
southernmoney
Posts: 46
Joined: Sun May 10, 2009 3:44 pm

Email / Ticket subject Field

Post by southernmoney »

Thanks Klemen.

It works!

May I ask also the procedure for the reply ticktes. I would not like to mess things up.

Regards

jvz
Southern Money
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Same as before, but this time add the code to

Code: Select all

$hesklang['new_reply_ticket']
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
southernmoney
Posts: 46
Joined: Sun May 10, 2009 3:44 pm

Email / Ticket subject Field

Post by southernmoney »

Thanks Klemen,

Needed to make sure. Do not want to create problems.

I did the change and it works nicely.

I assume that for those who want to add other info the method will be the same but "name" will be changed to for example "custom1"

Thank you very much.

Best whises.

jvz
Southern Money
notkristina
Posts: 1
Joined: Mon Nov 09, 2009 8:00 pm

Post by notkristina »

I have added the category to the subject line of the staff email in this way, but I was only able to add the category ID. How might I go about adding the actual name of the category? It doesn't absolutely have to be in the subject line — it would be okay if I just had it in the email body, really.
wid2767
Posts: 2
Joined: Tue Feb 02, 2010 5:00 pm

Post by wid2767 »

I am also interested in this fix, I can get the category # to display but I would really like the category name to display.
southernmoney
Posts: 46
Joined: Sun May 10, 2009 3:44 pm

Changing the Submit Ticket subject field

Post by southernmoney »

Hi Klemen,

Is it possible to also change the subject flied of the very first ticket that is send to the person submitting the ticket. I did change submit and reply tickets which addresses the mails to our staff, but not the client who submitted the ticket.

For purposes of spam it is better to have names in the subject field rather than repetitive content.

Thanking you kindly.

Southern Money
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Instead of

Code: Select all

$hesklang['ticket_received']
use

Code: Select all

$hesklang['ticket_received'] . ' by ' . $name
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
southernmoney
Posts: 46
Joined: Sun May 10, 2009 3:44 pm

Change Subject Field

Post by southernmoney »

Hi Klemen,

Tx.

Please confirm the file name please.

Regards
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It's in the submit_ticket.php one.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
southernmoney
Posts: 46
Joined: Sun May 10, 2009 3:44 pm

Subject Flieds

Post by southernmoney »

Got it!

Tx Klemen. Appreciated.

Best Wishes.
morsedesign
Posts: 15
Joined: Thu Jan 07, 2010 8:50 pm

Post by morsedesign »

This mod might be different in V2.2, can someone help?
Shawn Morse | Morse Associates, LLC
Lead Designer/Programmer
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Instead of $name use $tmpvar['name'] as now the field values are stored as $tmpvar['FIELD_NAME']
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
morsedesign
Posts: 15
Joined: Thu Jan 07, 2010 8:50 pm

Post by morsedesign »

I found that I was able to use . ' - '.$ticket['subject'] at the end of the $hesklang['new_reply_ticket'] in the following files:

submit_ticket.php
reply_ticket.php
admin_reply_ticket.php

And my tests seem to work fine.

should I do this differently?
Shawn Morse | Morse Associates, LLC
Lead Designer/Programmer
Post Reply