So I realize this will be some custom work but I just wanted to make sure no one has documentation or has done something similar. Basically, what we want to do it submit to a department based on where the user accesses open.php from. So say a user accesses open.php from sales.mycompany/open.php (or mycompany.com/sales/open.php), the ticket would submit automatically to the Sales Department, from service.mycompany.com/open.php to the Service Department, etc.