Assigning an support mails to the category

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
wsite
Posts: 9
Joined: Mon Jul 12, 2021 7:55 pm

Assigning an support mails to the category

Post 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?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Assigning an support mails to the category

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
wsite
Posts: 9
Joined: Mon Jul 12, 2021 7:55 pm

Re: Assigning an support mails to the category

Post by wsite »

Thanks, it works.
Post Reply