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.

Email Filtering - Sending mail to a PHP script.

Discussion in 'E-mail Discussions' started by uamistad, Jan 26, 2005.

  1. uamistad

    uamistad Registered

    Jan 25, 2005
    Likes Received:
    Trophy Points:
    Greetings to all of you, men !!

    I have seen that you know something about this.

    Look, I want to redirect all the mail that anyone send to to a PHP Script.

    In the DESTINATION field (in CPANEL9 --> E-mail Filtering), I have tried all of this and a lot more:


    Where "mbcomp" is my user name.

    I have one Script in: /public_html/display/index.php
    and another one (is the same script) in: /public_html/cgi-bin/display.php and /public_html/display.php

    All of them are the same and just for test they're working.

    The code in the file index.php and also in display.php is this:

    #!/usr/bin/php -q
    That, in order to get an email to my personal address just for a TEST. If I go directly to it works, cos I receive that email.

    But I have not received any mail with the subject "YA ESTUVO, WOW!!" when I send an email to

    I only have received mails that say "MAIL DELIVERY FAIL" in the subject.

    I wonder if you could mind helping me with any advise you can. Anything will help. It's very important to me.

    Thank you, man !!

Share This Page