Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Email Filtering - Sending mail to a PHP script.

Discussion in 'E-mail Discussion' 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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice