Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13678 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54219 invoked by uid 1010); 1 Nov 2004 19:12:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54176 invoked from network); 1 Nov 2004 19:12:51 -0000 Received: from unknown (HELO utopia.rusko.us) (207.44.144.89) by pb1.pair.com with SMTP; 1 Nov 2004 19:12:51 -0000 Received: from rusko (ool-44c0a1af.dyn.optonline.net [68.192.161.175]) by utopia.rusko.us (Sendmail) with SMTP id 6E822BBBAD for ; Mon, 1 Nov 2004 14:12:36 -0500 (EST) Message-ID: <00ed01c4c046$95a24560$0200a8c0@rusko> To: References: <20041101170256.87854.qmail@pb1.pair.com> Date: Mon, 1 Nov 2004 14:11:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: Re: [PHP-DEV] vhost in mail From: paul@rusko.us ("Paul G") ----- Original Message ----- From: "Alexander Windbichler" To: Sent: Monday, November 01, 2004 12:02 PM Subject: [PHP-DEV] vhost in mail > Hello, > > in the phpinfo() I can find (apache2handler) the entry: "Hostname:Port", > which displays the vhost you are running the script from. > In [phpsources]/sapi/apache2handler/php_functions.c I found the source. Now > I want to display the vhost in every mail, which is sent by php. I know that > the source is in [phpsources]/ext/standard/mail.c and I know how to add a > simple text, but I don't know how to insert the vhost. > > Can someone help me please? i posted a patch that inserts the script path for abuse tracking purposes to this list a while back. this was sufficient for my purposes, since in our setup the directory structure maps one to one to the vhosts. there is also a more complete patch floating around that inserts pretty much everything you may want to see and is being used in production by a few people. i'll see if i can dig it up, but i know it can be googled. paul