Well, an update.
I have added this snippet of code to the com_user/controller.php
$db = JFactory:();
$query = "SELECT email FROM jos_users WHERE username = ".$credentials;
$email = $db->query($query);
setcookie("osTicketEmail", $email, time()+3600);
Basically upon the users login, this is run. I believe this should get the email and store it in a cookie. Currently I can log in correctly without any issue.
How would I call this from within osTicket to provide that functionality. Would it be best to create an entire new file within the include/client folder, or edit the existing staff ticket view, scp/tickets.php and then use that in the clients folder?
Thanks for the help guys,
Andy