From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.hytera.de ([62.157.183.118]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UnRhR-0003gk-JE for ptxdist@pengutronix.de; Fri, 14 Jun 2013 12:57:46 +0200 Received: from domino.hytera.de ([172.21.102.22] helo=nbmx01.hytera.de) by mail.hytera.de with esmtp (Exim 4.72) (envelope-from ) id 1UnRhL-0001Lu-9a for ptxdist@pengutronix.de; Fri, 14 Jun 2013 12:57:39 +0200 In-Reply-To: MIME-Version: 1.0 Message-ID: From: Dennis.Herbrich@hytera.de Date: Fri, 14 Jun 2013 12:57:39 +0200 Subject: Re: [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 dave_festing@hotmail.com wrote: > Have been struggling with trying to get PHP's mail() to work [...] > Appreciate any suggestions as to the apparently fundamental mistake > I am making. The fundamental mistake is not checking the debug log output to find the real reason *why* the call to mail() fails. Crank up the log level for PHP, and see what it tells you. You might be having no sendmail binary in the expected path, or some other file system permission problem that prevents mail() to do it's job. What you may not know is that PHP's mail() function usually uses an external binary ("/usr/bin/sendmail") to drop the mail into the locally running, completely independent MTA. This obviously allows for many things to go wrong on the way. Check the PHP debug log, then the MTA's logs if delivery somehow fails. No MTA running locally? Try using PHP's SMTP features directly with a remote MTA instead, or install a simple forwarding MTA, depending on your requirements. In either case, this is much more of a PHP/MTA configuration issue, and likely nothing ptxdist-specific. Best regards, Dennis -- ptxdist mailing list ptxdist@pengutronix.de