3.1.0 - %%ID%% in email subject

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
rebeloda
Posts: 9
Joined: Sun Jan 03, 2016 2:31 am

3.1.0 - %%ID%% in email subject

Post by rebeloda »

Hi.

In a new fresh installation of Hesk 3.1.0 the email tag %%ID%% prints sequential ticket ID appears ok in the email body but not in the subject where it shows like [#%%ID%%]
The language filles for the EMAIL SUBJECTS were updated with the %%ID%% and have already tried removing the brackets and the # but it does not change.
Anything else that i need to change?

Rgds
Rebelo
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: 3.1.0 - %%ID%% in email subject

Post by Klemen »

%%ID%% was never supported in email subjects, only %%TRACK_ID%% for the unique tracking code.

You will need to manually add %%ID%% if you need it. In /inc/email_functions.inc.php inside the hesk_getEmailSubject function you will need to add something like $msg = str_replace('%%ID%%', $ticket['id'], $msg); before the last return $msg; in this function.
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
rebeloda
Posts: 9
Joined: Sun Jan 03, 2016 2:31 am

Re: 3.1.0 - %%ID%% in email subject

Post by rebeloda »

Tks Klemen.

Made the addition in /inc/email_functions.inc.php and it works.
The setback is when someone answer the ticket from the email program it creates a brand new ticket.
And i made sure the sender email address is the same as the original ticket.
Just leave it, will change it to %%TRACK_ID%% again.

Keep safe
Rebelo
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: 3.1.0 - %%ID%% in email subject

Post by Klemen »

For email replies to work the %%TRACK_ID%% must be used.

If Hesk used simple sequential IDs it would be easy to add false replies.
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
Post Reply