I'm trying to implement a way for a referred staff member (referral) on a ticket to receive email updates when they are referred to the ticket. I'm trying to duplicate the normal alert system, but I haven't been able to find which files control this functionality.
Do you have any ideas?