Skip to main content

Email Pipe issues

Comments

7 comments

  • Infopro
    Your test.php script is posted around the Internet. Here's one site with some additional details you might find useful: a2hosting.com/kb/cpanel/cpanel-mail-features/forwarding-incoming-e-mail-messages-to-a-script-file
    0
  • cPanelMichael
    Hello :) The output suggests you may have simply entered the path to the script. Instead, you have to enter it like this:
    |php -q /home/user/public_html/path/script.php
    Thank you.
    0
  • fifebirder
    cPanelMichael, x3 does not allow the pipe symbol.
    0
  • cPanelMichael
    x3 does not allow the pipe symbol.

    I was noting the fact that it looks like you may have left out "php -q". Thank you.
    0
  • fifebirder
    i have got it sort of working but form some reason [Removed - Please paste output in CODE tags] isnt getting the email, checking email logs says that it has been delivered, files have 1777 permissions
    0
  • fifebirder
    i have got it sort of working but form some reason [PHP]#!/usr/local/bin/php -q [/PHP] isnt getting the email, checking email logs says that it has been delivered, files have 1777 permissions


    PHP Warning: fopen(MAIL.txt): failed to open stream: Permission denied in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 11 Warning: fopen(MAIL.txt): failed to open stream: Permission denied in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 11 PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 12 Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 12 PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 13 Warning: fclose() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 13
    0
  • Infopro
    You might do better to find the author of the script, or a coding forum for support with this. The problem is with your script, not your cPanel.
    0

Please sign in to leave a comment.