RE: [PHP] Mail() "problem"

From: Date: Tue, 17 Jun 2003 10:49:27 +0000
Subject: RE: [PHP] Mail() "problem"
Groups: php.general 
Request: Send a blank email to php-general+get-151815@lists.php.net to get a copy of this message
Hi Don, > <?php > > $cmd='/bin/sh -c "set"'; > > passthru($cmd); > echo '<P>'; > putenv("REMOTE_ADDR=$REMOTE_ADDR"); > passthru($cmd); > echo '<P>'; > > ?> > This code will work, but I want to be able to enforce it on people that use the mail() function. I want php to call sendmail (The one from php.ini that is) WITH this environment variabele still set. Maybe my initial post wasn't that clear on this :) > Don Read dread@texas.net Kind regards, Maikel Verheijen.

« previous php.general (#151815) next »