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.

redirect emails to script

Discussion in 'E-mail Discussions' started by ramil, Jan 11, 2004.

  1. ramil

    ramil Active Member

    Joined:
    Dec 28, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    how can I send filtered emails to user script in "Email Filtering" section, the |/home/user/script.cgi works, but how can I send full email content to this script?
     
  2. peterr

    peterr Well-Known Member

    Joined:
    Sep 24, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
  3. DN-Paul

    DN-Paul Well-Known Member

    Joined:
    Oct 30, 2003
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
  4. peterr

    peterr Well-Known Member

    Joined:
    Sep 24, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Thanks for the link to that, very interesting article. Not _too_ sure if I can use it exatly the way it is explained, because of this statement in the "what you need"

    I did a phpinfo() and it says:

    Server API Apache

    so, doesn't that mean PHP isn't running as CGI ??

    I still might give the example a try, the article mentions the need to shell out, but I'm sure PHP can do that , .... hmm, yep, see http://au.php.net/manual/en/ref.exec.php

    Edit: Although the phpinfo() does also say ...........

    _SERVER["GATEWAY_INTERFACE"] CGI/1.1

    Beats me ??

    Thanks,

    Peter
     
    #4 peterr, Jul 14, 2004
    Last edited: Jul 14, 2004
Loading...

Share This Page