Hi there

Is there any posibility that when a ticket is mailed to a support staff that in the subject field I can include the %ticket, %email and %subject from the users ticket to have a quick overview in my mail ? on the mail subject as well ?

sunno about Subject but the other 2 should already be supported.

http://www.osticket.com/wiki/Email_Templates(http://www.osticket.com/wiki/Email_Templates)

can this be used in the subjet heading as well ?

Subject

I also was looking for this option, it is much easier to search trough the e-mail.

Has anyone al solution?

Lodie

a month later

I was able to do it by modifying the /include/class.ticket.php file.

in /include/class.ticket.php add the following on line 990 (may be different depending) right after

if($resp && list($subj,$body)=db_fetch_row($resp)){

Add this

$subj = str_replace("%ticket", $ticket->getExtId(),$subj);

$subj = str_replace("%email", $ticket->getEmail(),$subj);

$subj = str_replace("%subject", $ticket->getSubject(),$subj);

thanks

i will try this

this is what is curently in my code

if($resp && list($subj,$body)=db_fetch_row($resp)){ $body = str_replace("%ticket", $ticket->getExtId(),$body); $body = str_replace("%name", $ticket->getName(),$body); $body = str_replace("%email", $ticket->getEmail(),$body); $body = str_replace("%subject", $ticket->getSubject(),$body); $body = str_replace("%dept", $dept?$dept->getName():'',$body); $body = str_replace("%message",$var,$body); $body = str_replace("%url", $cfg->getBaseUrl(),$body); $sentlist=array();

Must I replace this current code or just add what you have posted

You just need to add the three lines of code under the one I referenced.

Write a Reply...