Page 1 of 1

Assigning an support mails to the category

Posted: Sat Jul 17, 2021 8:02 am
by wsite
Assigning an support mails to the category.

Hi,

I would like to ask if it is possible to easily assign an email to a given category? I am using the pop3 function and it works great. I have read previous threads.

I edit file pipe_functions.inc.php

Code: Select all

 
 $tmpvar['to_email'] = hesk_validateEmail($results['to'][0]['address'],'ERR',0);
if ($tmpvar['to_email'] == "support1@domain.com") {

$set_category =1;

} else if ($tmpvar['to_email'] == "support2@domain.com") {

$set_category = 2;

} else {

$set_category = 3;
}
Unfortunately, the above code does not work for me? Am I doing something wrong?

Re: Assigning an support mails to the category

Posted: Sat Jul 17, 2021 11:15 am
by Klemen
Instead of modifying the logic, I would recommend that instead of this you create copies of the hesk_pop3.php files and have each connect to a unique mailbox.

Re: Assigning an support mails to the category

Posted: Sun Jul 18, 2021 3:10 am
by wsite
Thanks, it works.