Assigning an support mails to the category
Posted: Sat Jul 17, 2021 8:02 am
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
Unfortunately, the above code does not work for me? Am I doing something wrong?
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;
}