PDA

View Full Version : Include %message in New Message Autoresponse


awells527
01-13-2010, 01:23 PM
Has anybody had any luck in getting the %message or %response variable working in the New Message Autoresponse?

PRedmond
01-13-2010, 06:02 PM
Have you tried going to the admin panel, emails, templates, select the template you are using, and entering %message where you want the message to appear? That should work - is it not?

xrat
01-13-2010, 06:34 PM
Has anybody had any luck in getting the %message or %response variable working in the New Message Autoresponse?

Please don't forget to search the forum for stuff like this. The forum is full of lots of good tips :)

I did it only for %message (do we need the %response?). Edit file include/class.ticket.php. At line 600sth you should find
$body=$this->replaceTemplateVars($body);
$subj=$this->replaceTemplateVars($subj);
$body = str_replace('%signature',($dept && $dept->isPublic())?$dept->getSignature():'',$body);
//Reply separator tag.

Before the "//Reply separator tag." comment insert
$body = str_replace("%message", $msg,$body);