From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from plane.gmane.org ([80.91.229.3]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UnQBj-0007VU-Ru for ptxdist@pengutronix.de; Fri, 14 Jun 2013 11:21:23 +0200 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UnQBh-00085p-I0 for ptxdist@pengutronix.de; Fri, 14 Jun 2013 11:20:53 +0200 Received: from 121.75.146.251 ([121.75.146.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 11:20:53 +0200 Received: from dave_festing by 121.75.146.251 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 11:20:53 +0200 From: Dave Festing Date: Fri, 14 Jun 2013 09:20:33 +0000 (UTC) Message-ID: Mime-Version: 1.0 Subject: [ptxdist] PTXdist PHP5 CLI mail() Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Have been struggling with trying to get PHP's mail() to work in PTXdist 2012.12.0 I can send email using PHP-CLI as follows: #!/usr/bin/php5 But, when I try to send email from within a PHP block in a webpage the mail function does not run: Test mail function

Test mail function

These both are in the same directory, same permissions and use the same php.ini file. In the rule file php5.in and for PHP5_SAPI_CLI the help states: Build CLI (command line version) of PHP. Does this mean one ends up with an unique version of PHP that has the added feature of running CLI or does it mean that if you want to have a "normal" version of PHP to use in webpages then you have to build a version without CLI? The CLI version I ended up with seems to work in both BUT not for the mail() function! I have also tried PHPmailer and get an error: Mailer Error: Could not instantiate mail function. This confirms to me that the mail() just does not run on the webpage. Appreciate any suggestions as to the apparently fundamental mistake I am making. Thanks, Dave -- ptxdist mailing list ptxdist@pengutronix.de