The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Piping cPanel contact form to WHMCS

Discussion in 'General Discussion' started by cranbri, Feb 25, 2014.

  1. cranbri

    cranbri Registered

    Joined:
    Feb 25, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page