+ Reply to Thread
Results 1 to 3 of 3

Thread: problem piping email to php code

  1. #1
    zyxstand is offline x10Hosting Member zyxstand is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    2

    Unhappy problem piping email to php code

    [RESOLVED] :D

    i'm having problems with email piping in cpanel.

    my goal:
    i want users to be able to send an email to an address i created myemail@mydomain.com which in turn gets piped to a php script which reads the email and does php stuff (mysql access and stuff) and then send back an email (most likely an email confirmation of their action).

    my setup and problem:
    i created email account.
    i setup forwarding (pipe to a program) letting it use its auto-complete to get point to myscript.php file.
    it now has it set to: fromhere@blablabla.bleh.com to |/home/myusername/public_html/blabla/myscript.php
    myscript.php contains the following (simple) lines:
    Code:
    #!/usr/bin/php -q
    <?php
    
    $subject = "does it work";
    $message = "of course it does!";
    
    mail('test@blablabla.bleh.com', $subject , $message);
    ?>
    i change myscript.php permission to all execute (755)
    i tested myscript.php by running it by opening it in the browser - all it does is send an email to a different address, which works.
    i try sending email to the address for which forwarding is set. email bounces and i get the error in the bounced-back email:
    Code:
     pipe to |/home/blabla/public_html/blabla/myscript.php
       generated by fromhere@blablabla.bleh.com
       local delivery failed
    
    The following text was generated during the delivery attempt:
    
    ------ pipe to |/home/blabla/public_html/blabla/myscript.php
          generated by fromhere@blablabla.bleh.com ------
    
    /usr/bin/php: error while loading shared libraries: libpspell.so.15: cannot open shared object file: No such file or directory
    I spent a lot of "debugging" time (which essentially ended ended up simply changing various parameters and reading the bounced email error report) - i can supply some more info on that, though i don't think it's necessary. It seems like my problem has to do with this error:
    Code:
    /usr/bin/php: error while loading shared libraries: libpspell.so.15

    is this a server-side error? am i going about my goal a completely wrong way? any help is very appreciated?

    thank you in advance,
    zyxstand
    Last edited by zyxstand; 09-17-2010 at 09:40 PM.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: problem piping email to php code

    That specific error (libpspell.so.15) should now be fixed.
    Nothing is always absolutely so.

  3. #3
    zyxstand is offline x10Hosting Member zyxstand is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    2

    Re: problem piping email to php code

    Thank you very much. The problem has been resolved and is now working as expected.
    Thanks for the fast response!

+ Reply to Thread

Similar Threads

  1. Piping on Linux Command line
    By simonthecat in forum Computers & Technology
    Replies: 3
    Last Post: 05-06-2010, 08:36 AM
  2. im not getting my code to confirm email
    By cog1959 in forum Free Hosting
    Replies: 2
    Last Post: 04-18-2010, 12:05 AM
  3. wrong email in set up - can't get confirmation code
    By bishome in forum Free Hosting
    Replies: 1
    Last Post: 11-29-2009, 07:04 PM
  4. Replies: 1
    Last Post: 08-26-2009, 02:10 PM
  5. Piping Email to PHP Script
    By hbweb500 in forum Free Hosting
    Replies: 3
    Last Post: 09-12-2007, 04:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers