Hello guys.  I'm trying to modify an email template.  By default, it uses  %{recipient.ticket_link} to open a URL directly to the ticket, without putting the email/ticket number for a user.  However, my issue is I customized my installation for use with multiple sites, thereby not able to use that variable.I am particularly interested in knowing the variable for the latter part of that variable, and I can add at the beginning the custom domain osticket is being used.Example: clicking "login to your account"  opens https://support.domain.com/view.php?auth=o1xcaaaaad1aaaaaAwWjfBoY7ujiow%3D%3DI only want "view.php?auth=o1xcaaaaad1aaaaaAwWjfBoY7ujiow%3D%3D" in the variable.Any advice? Which email variable is this?

https://github.com/osTicket/osTicket/blob/55dc25ace736baeaf224ee608cfabc0218022036/include/class.client.php#L65-L68https://github.com/osTicket/osTicket/blob/770174cffaba74fae171bd3ec859491f42fdd4e1/include/class.collaborator.php#L89-L96

Thank you sir.  SO I take it there is no specific Variable in brackets just for it specifically.  Very helpful indeed, might need to customize some more.  Also is there  way to override the company URL in the settings to just grab the URL browser used instead?  This way we can have it change the URL automatically without having to manually edit each email template.

Write a Reply...