Configure a routing rule inside Clientexec
On the admin side of Clientexec, click on Settings
> Support > Routing
We will now create the rule of how the emails will be dealt with once passed through your Support Pipe. To give you a better understanding of how it works, when someone sends an email to a certain email address (depending on the rule you setup) it is forwarded to the SupportPipe.php script which then looks at your rules and directs the email from there based on the rules that apply.
Click on the Add Routing Rule
button. Here is an example of a more common setup:
- Rule Name: A friendly name, can be anything, used for organizational purposes when you have multiple rules.
- Request Source: Choose E-Mail pipe forwarding for this rule
- E-Mails: This part is important when an email comes in, this rule will only trigger for the specified emails listed in this box(one email per line). If you wish to apply this rule to all incoming emails, you can simply put in a "*".
- It is important to note the NOTICE box towards the bottom. We will need this later on.
Next will be the User Type tab, for this example, we will be using the Any rule. This will tell the incoming email regardless if the sender is registered with your ClientExec install or not, to use this rule.
Onto the last tab, Actions, this tab will tell ClientExec what to do with the incoming email.
For this example, we will be using the Default autoresponder template, you can edit or add additional templates via Settings
> Email Templates
> Autoresponder Emails
(Drop down box on the right
You can either have the email pipe just send an auto response back to the customer, or you can have it open a ticket up in the ticket support system by checking the Open Ticket?
box. This will allow you to select from different options on how the ticket will be handled, you can leave the settings as they are default, or you can choose where/who it will be assigned to.
Once you hit Save, the rule will be completed and it will be on to create an Email Forward with your Control Panel. For this example, we will use cPanel.
Creating an email forward in cPanel
Once logged into cPanel, click on the Forwarders icon located under the EMAIL section.
Click on Add Forwarder. In the next image, only pay attention to the highlighted areas.
- Address to Forward: You will need to do this for every email that you want to be piped to your Clientexec install, our example we used support
- Make sure to click Advanced Options
- Fill in the circle for Pipe to a Program: This is the relative path to SupportPipe.php, which can be found in Clientexec.
- Click on Add forwarder button.
- Ensure the file permission for SupportPipe.php are set to 755 which can be done inside the File Manager.
Once the forward is set, you should be able to send an email to the email you setup, in our case [email protected] and it will be piped through SupportPipe.php which will then apply the rules you have set inside Clientexec.
Posting has been disabled.