Hello
I use Google apps, alias emails. Mainly it is receiving different emails that Google puts to the same email.
I have 2 emails
support1@domain.com
support2@domain.com
But actual email is me@domain.com.
I need a way of getting them sorted out to their departments.
I use Auto assignment rules MOD http://sudobash.net/osticket-auto-assignment-rules(http://sudobash.net/osticket-auto-assignment-rules)
I suspect that I need to edit this line. But not sure how to do that.
if (preg_match("/$Criteria/i", $email))
{
if( "$Action" == "deptId" )
{
$deptId=$Department;
}
elseif( "$Action" == "staffId" )
{
$staffId=$Staff;
$staffId=preg_replace( '/\n/', '', trim($staffId) );
$qry = sprintf("SELECT dept_id FROM `ost_staff` WHERE staff_id=$Staff;");
$result=mysql_query($qry);
while ( $row = mysql_fetch_assoc($result)){
$deptId=$row;
}
}
}
}
It assigns users to the department too. I need a way of simply putting emails to their departments.
Thank you
Any help would be great.