Page 1 of 3

Email / Ticket Subject Field

Posted: Fri Oct 09, 2009 10:55 am
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

Posted: Fri Oct 09, 2009 12:50 pm
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

Email / Ticket subject Field

Posted: Fri Oct 09, 2009 1:56 pm
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

Posted: Fri Oct 09, 2009 4:17 pm
by Klemen
Same as before, but this time add the code to

Code: Select all

$hesklang['new_reply_ticket']

Email / Ticket subject Field

Posted: Fri Oct 09, 2009 4:26 pm
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

Posted: Mon Nov 09, 2009 8:02 pm
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.

Posted: Tue Feb 02, 2010 5:52 pm
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.

Changing the Submit Ticket subject field

Posted: Fri Mar 05, 2010 10:51 am
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

Posted: Fri Mar 05, 2010 6:43 pm
by Klemen
Instead of

Code: Select all

$hesklang['ticket_received']
use

Code: Select all

$hesklang['ticket_received'] . ' by ' . $name

Change Subject Field

Posted: Sat Mar 06, 2010 6:17 am
by southernmoney
Hi Klemen,

Tx.

Please confirm the file name please.

Regards

Posted: Sat Mar 06, 2010 9:36 am
by Klemen
It's in the submit_ticket.php one.

Subject Flieds

Posted: Sun Mar 07, 2010 11:58 am
by southernmoney
Got it!

Tx Klemen. Appreciated.

Best Wishes.

Posted: Fri Jun 11, 2010 5:24 pm
by morsedesign
This mod might be different in V2.2, can someone help?

Posted: Fri Jun 11, 2010 6:10 pm
by Klemen
Instead of $name use $tmpvar['name'] as now the field values are stored as $tmpvar['FIELD_NAME']

Posted: Fri Jun 11, 2010 6:26 pm
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?