Re: vhost in mail
| From: | Paul G | Date: | Mon, 01 Nov 2004 19:11:25 +0000 |
| Subject: | Re: vhost in mail | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13678@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Alexander Windbichler" <A.Windbichler@cybton.com>
To: <internals@lists.php.net>
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