Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22237 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69015 invoked by uid 1010); 7 Mar 2006 23:08:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68999 invoked from network); 7 Mar 2006 23:08:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2006 23:08:16 -0000 X-Host-Fingerprint: 81.103.221.48 mta08-winn.ispmail.ntl.com Solaris 8 (1) Received: from ([81.103.221.48:61094] helo=mta08-winn.ispmail.ntl.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 93/96-27106-F521E044 for ; Tue, 07 Mar 2006 18:08:15 -0500 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mta08-winn.ispmail.ntl.com with ESMTP id <20060307230811.NQGD29066.mta08-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>; Tue, 7 Mar 2006 23:08:11 +0000 Received: from [192.168.0.22] (really [86.2.124.185]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20060307230811.BPYT1347.aamtaout02-winn.ispmail.ntl.com@[192.168.0.22]>; Tue, 7 Mar 2006 23:08:11 +0000 Message-ID: <440E130C.1050108@fission.org.uk> Date: Tue, 07 Mar 2006 23:11:08 +0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sean Coates CC: internals@lists.php.net References: <440E0187.5040102@fission.org.uk> <440E0F3D.9020604@caedmon.net> In-Reply-To: <440E0F3D.9020604@caedmon.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] mail addition From: gareth@fission.org.uk (Gareth Ardron) Sean Coates wrote: > Gareth Ardron wrote: > >>Hi, >> >>Sort of mailing this in as the result of the rantings of quite a few >>mates of mine who look after shared hosting boxes. >> >>Would it be acceptable to do up a patch for the mail() function which'll >>listen to an ini entry[0] for a logfile to log all mail sent using this >>function. > > > You can do this in "admin-space": > http://blog.phpdoc.info/archives/20-mail-replacement-a-better-hack.html > > True, it doesn't prevent the user from ini_set()ing, but unless you're > blocking the socket functions, the user can get around this anyway. I do like that, and I agree that it works when people put a modicum of thought into stuff - unfortunatly, most of the admins I know at least just install, set up php.ini and leave it. This is the problem, the admin's are as useless as the users they so readily poke fun at, but if there's a nice easy way to get it working, so much the better.