I've done a few mods to OSticket myself, but for the life of me can't figure out this very simple one:
When a user submits a new ticket via email, the auto response starts with "Hello ,"
The first name and last name obviously comes from the FROM: line of the email. What we want to do is only use the first name in the auto response by splitting the name at the first space and discarding the rest.
So the auto response should read "Hello ,". Within the ticket system itself we still want to see the full name.
I'd have thought it was just as simple as adding in another variable to:
$msg = $this->replaceVars($msg,
array('message' => $message,
'signature' => ($dept && $dept->isPublic())?$dept->getSignature():'')
);
Like so:
$msg = $this->replaceVars($msg,
array('message' => $message,
'signature' => ($dept && $dept->isPublic())?$dept->getSignature():'',
'firstname' => 'This is the first name')
);
Then use %{ticket.firstname} in the email template, but doing this just replaces the %{ticket.firstname} with nothing, so I must be missing something somewhere... but where?