Jump to content

Email not piping and creating a ticket


hostlonestar

Recommended Posts

Ok, so I'm having a problem. I can't get my WHMCS to create a support ticket when someone emails the different support department (say...sales department). I copy and paste the cron job from WHMCS configure support departments. Cron line is: | php -q /home/hostlone/public_html/client/whmcs/pipe/pipe.php

 

I get this return:

 

/bin/sh: -c: line 0: syntax error near unexpected token `|'

/bin/sh: -c: line 0: `| php -q /home/hostlone/public_html/client/whmcs/pipe/pipe.php'

 

 

What exactly does this mean? How do I fix it?

Link to comment
Share on other sites

Hi hostlonestar,

 

This is not a cronjobs but a Forwarders command. It needs to be added as a forwarders under Mail *> Forwarders (if using cPanel).

 

As for an example, let say you are running cPanel. You would log in to cPanel, click Forwarders > Add forwarder and create the following using Pipe method:

 

Address to Forward: support @ mywebsite.com (drop down list)

Destination:

 

  • Pipe to a Program: | php -q /home/hostlone/public_html/client/whmcs/pipe/pipe.php

 

Give it a try and let us know!

Link to comment
Share on other sites

ok I tried it. That would make sense why it wasn't working as a cron job lol. I'm still trying to figure out PHP, I'm picking it up, but only just started learning. Its similar to C++ which I'm quite decent at, so hopefully I get it quickly.

 

I will let you know if it works or not.

 

I had to make it executable

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

I was having this issue. I think the cPanel form is munging some things. For some reason, clearing out any forwarders and recreating them by hand (i.e. not pasting in the line) in cPanel resolved the issue.

 

if using cPanel x3 theme, TYPE in: public_html/your_path_to_whmcs/pipe/pipe.php

 

also make sure the pipe.php file is executable. For me, all this was *exactly* the same, only I was pasting in the pipe line before. Once I cleared it and typed it in, it worked like a charm. Strange I know, but try it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated