aria_cop
03-13-2008, 09:00 AM
Hi,
I want to add new variable in subject & message body of auto response email to users.
I add %subject (The subject user submitted) in subject line of autoresponse email template.
my subject line is: [Support #%ticket] : %subject .
and in message body : i add %message for original user message echo.
And in include/class.ticket.php I add this line in the autoresponse function & email alert function:
$subj = str_replace("%subject", $this->getSubject(),$subj);
$body = str_replace("%subject", $this->getSubject(),$body);
$body = str_replace("%message", $msg,$body);
But it doesn't Work and in emails it echo "%subject" and "%message" yet.
How can I fix this?
I want to add new variable in subject & message body of auto response email to users.
I add %subject (The subject user submitted) in subject line of autoresponse email template.
my subject line is: [Support #%ticket] : %subject .
and in message body : i add %message for original user message echo.
And in include/class.ticket.php I add this line in the autoresponse function & email alert function:
$subj = str_replace("%subject", $this->getSubject(),$subj);
$body = str_replace("%subject", $this->getSubject(),$body);
$body = str_replace("%message", $msg,$body);
But it doesn't Work and in emails it echo "%subject" and "%message" yet.
How can I fix this?