Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8763 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28389 invoked by uid 1010); 26 Mar 2004 12:14:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28364 invoked from network); 26 Mar 2004 12:14:51 -0000 Received: from unknown (HELO zooty.lancs.ac.uk) (148.88.16.231) by pb1.pair.com with SMTP; 26 Mar 2004 12:14:51 -0000 Received: from exchange-fe1.lancs.ac.uk ([148.88.1.22] helo=exchange-fe1.lancs.local) by zooty.lancs.ac.uk with esmtp (Exim 4.30) id 1B6qEk-0007GS-OI for internals@lists.php.net; Fri, 26 Mar 2004 12:14:58 +0000 Received: from exchange-be1.lancs.local ([148.88.5.52]) by exchange-fe1.lancs.local with Microsoft SMTPSVC(5.0.2195.6713); Fri, 26 Mar 2004 12:05:49 +0000 x-mimeole: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 26 Mar 2004 12:05:48 -0000 Message-ID: <7F332A8009EE5D4CB62C87717A3498A101803B2D@exchange-be1.lancs.ac.uk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] Add information header to mail() Thread-Index: AcQTKq0VXRhtE1AjRQSwRCI53F1yww== To: X-OriginalArrivalTime: 26 Mar 2004 12:05:49.0429 (UTC) FILETIME=[AD8A4250:01C4132A] Subject: [PATCH] Add information header to mail() From: s.bennett@lancaster.ac.uk ("Bennett, Steve") This is a patch to add an informational header to messages sent from PHP via the mail() function. This can help to track which script on a server was used to send a message, and which client caused it to be sent. The header added has the form:=20 X-PHP-Script: for =20 For example:=20 X-PHP-Script: www.example.com/~user/testapp/send-mail.php for 10.0.0.1 http://www.lancs.ac.uk/~steveb/php-mail-header-patch/ Steve.