Email piping is feature in Business24 CRM to auto open or reply to ticket from email.
- On your mail server you must create a unique email account for each support department, this must be a full inbox.
- In business24 navigate to Setup -> Support -> Departments > Edit and enter your email address for this department.
Email forwarders method (from cPanel)
- Login to you cPanel account
- Go to Forwarders section and setup forwarder using the following command based on your department “php -q /home/username/public_html/crm/pipe.php” . Eq. If you department is Info and you setup email@example.com as email in the department you should forward this email. Repeat this step for each department.
IMAP Auto Import Method
This method auto import tickets directly reading your email.
- If you want to use this method you need to have setup cron job.
- The cron will run each 5 minutes and will check for new tickets.
NOTE: The script will check only non-opened emails to prevent checking all the emails again and again and avoid slowing down the system. After checking email if you dont have checked delete after import the script will auto mark the email as READ.
Your PHP build needs IMAP support for this method to function correctly.
- On your mail server create a unique email account for each support department. This must be full inbox alias email is not supported.
- Navigate to Setup->Support->Departments for each department add your IMAP credentials, click test IMAP connection to test if the connection is successful and your credentials are good.
- Follow the test steps mentioned below.
Gmail IMAP Auto Import notes
- If you are using google apps account make sure you verified your domain name.
- If you are using google apps account make sure you enable IMAP.
- If you get connection refused while testing IMAP connection check that your server’s firewall isn’t blocking traffic to google.
- Maker sure you have enabled less secure apps
- For IMAP server try imap.gmail.com
- Check encryption SSL
To control/block any spam emails you should visit Setup->Support->Spam Filters.
Testing the Email Piping
After you setup the piping try sending some test email. If everything is good a new ticket will be opened inside the CRM. While testing you should not use your or any staff address to send message.
Staff email addresses is only for ticket replies only and you cant create new ticket with staff email.
Should a ticket not be created when sending in an email, then check in Utilities > Ticket Pipe Log. If the message was received by business24 it will be listed here with the reason why it failed to create a ticket. If the message you sent is not listed here, then the forwarder you setup previously is not working correctly and business24 didn’t receive the message.
If you get the error message “Ticket ID Not Found” this means you are trying to open a support ticket from your staff email address.
Staff can only reply to tickets, not open new ones so submit a ticket from any other email address and it should be accepted.
Known problems you can encounter
If an email has not been piped into the ticket system the first reference point is Utilities > Email Pipe Log. This shows all the emails processed by the business24 email piping process and any errors that may have occurred, explanations of the three most common errors are below:
Ticket ID Not Found
This means you are using an email address assigned to an staff to send your email. Staff can only reply to tickets and cant open new tickets sending an email to the support emails.
If you want to test, you must send an email from an email address that is not assigned to an staff into business24.
Only Replies Allowed by Email
The log means that an email was received to the department email address, but the subject did not contain a ticket ID. If you have set to Yes Only Replies Allowed by Email option located in Setup -> Settings -> Support->Email Piping config the email is rejected from the system.
Inline attachment not included in ticket body (cPanel forwarder method)
Its not possible for us to fetch the inline attachments from the email body and include in ticket. Only regular attachments are included. The mail servers stores the attachments href as cid:ii_136a895175f87da3.
New Tickets/Replies are Imported Twice
Staff members not receiving email when new ticket is created or reply is posted
Click here to read more about the reason why this is happening.
If an email has not been piped into the ticket system and it is not listed in the Utilities > Email Pipe Log then these steps can be followed to identify the cause of the problem. There are different procedures depending upon whether the email forwarder piping method is used.
No Log outputed in the Email Pipe Log or Getting Mail Delivery
If no email pipe log when sending an email in to your piped email address then the forwarder entry is not correct and the message is not being sent to the pipe.php file.
To correct this, first ensure the pipe.php file is chmod to 755.