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

    Joined:
    Jan 25, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    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 ismael@mydomain.com to a PHP Script.

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

    |/home/mbcomp/display.php
    /home/mbcomp/public_html/cgi-bin/display.php
    |/home/mbcomp/display/index.php
    |/home/mbcomp/public_html/cgi-bin/display.php
    |/mbcomp/display/display.php



    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:

    PHP:
    #!/usr/bin/php -q
    <?php
    mail
    ("unmillondedolares@gmail.com","YA ESTUVO, WOW!!","SALIÓ LA CHINGADERA");
    ?>
    That, in order to get an email to my personal address just for a TEST. If I go directly to http://www.mydomain.com/display/index.php 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 ismael@mydomain.com.

    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 !!
     
Loading...

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