had tried to view the %{ticket.user.code} in the email response New Message Alert.
But it seems the value of the variable does not work.
I'm not sure what ticket.user.code would be. Is that a custom field that you added to the Contact Information form?