php -q
I'm piping an email to PHP, and the first line of my script (before
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
pipe to |php cognito.php
generated by cognito@mydomain.com
The following text was generated during the delivery attempt:
------ pipe to |php cognito.php
generated by cognito@mydomain.com ------
X-Powered-By: PHP/5.6.40
Content-type: text/html; charset=UTF-8
BTW I also tried to edit php.ini adding error_reporting = E_ERROR | E_PARSE but that didn't solve the issue either.
BTW I also tried to edit php.ini adding error_reporting = E_ERROR | E_PARSE but that didn't solve the issue either.
-
Hey there! Even if PHP was silencing warnings, that wouldn't stop a bounceback email from being generated as that is all handled by Exim itself. Can you get us more detail on what you're trying to do? 0 -
I'm personally surprised at the headers included (X-Powered-By and Content-type) as those imply the script thinks it is running under a webserver. It also references PHP 5.6 also reached ) or as a filter (Pipe to a Program", it says: [QUOTE] If the script requires an interpreter such as Perl or PHP, you should omit the /usr/bin/perl or /usr/bin/php portion, Make sure that your script is executable and has the appropriate 0 -
It seems that "| php -q" did the trick. Thanks to both of you. p.s. I'm not using PHP 5.6 on any business server, it's just this debug server (or actually, this domain) that still is. 0
Please sign in to leave a comment.
Comments
3 comments