Piping cPanel contact form to WHMCS

cranbri

Registered
Feb 25, 2014
1
0
1
cPanel Access Level
Reseller Owner
Hi guys.

This is my first time setting up cPanel/WHM and WHMCS so please bare with!

In the support section of WHM i noticed you can change what happens when a user of your cpanel tries to contact you.

I would very much like to pipe this into WHMCS, but i cant figure out what the problem is. I keep recieving this error when testing it out on my own cpanel account which is joined to my WHM account:

There was a problem sending your email. Please try again.


Here is the code i used in the pipe text box:

| php -q /home/cranbri7/public_html/dev/clients/pipe/pipe.php

To see if the problem was just the pipe code i also tried sending the query straight to an email address i have set up, but this is also showing the message.

Do you guys have any idea why i am receiving this error?
The ideal outcome would be to pipe the contact form to WHMCS support tickets

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

You mentioned the same error message occurs when you use an actual email address. What error message appears in /var/log/exim_mainlog or /usr/local/cpanel/logs/error_log when this happens?

Thank you.
 

rhenderson

Well-Known Member
Apr 21, 2005
785
2
168
Oklahoma
cPanel Access Level
Root Administrator
Here is the code i used in the pipe text box:

| php -q /home/cranbri7/public_html/dev/clients/pipe/pipe.php
Your piping looks right, and if I am understanding correctly, this might help.

When I used to use WHMCS I also had an initial problem setting up the support email piping using a forwarder, just going from memory, when I set it up cPanel altered the code just enough that it would not work. To fix it we logged in through shell and edited the /etc/valiases/domainname.com file and replaced the altered code, note is is escaped with ""''s

OR you can install ConfigServer Mail Manage (A WHM Plugin) that will let you edit the forwarding information in a text file format via WHM.

Add the plugin, linked above, go to the domain mail configuration, go to forwarders, and edit them.