Code: Select all
// Auto assign tickets if aplicable
$tmpvar['owner'] = 0;
Code: Select all
// Auto assign tickets if aplicable
$tmpvar['owner'] = If FROM e-mail address matches hesk_users.e-mail set corresponding to their user id;
Basically I've already modified the customer name and e-mail on ticket to be set as the TO: from the e-mail sent to hesk. Now I want the ticket to get assigned to the users e-mail it came FROM:. Any help much appreciated.. I will be digging on this for the next few weeks.
How I want my e-mail piping to work is (User sends response to customer and BCCs hesk pop account. This way when the staff sends a response, a ticket is generated for that end user and assigned to the particular staff member in hesk.