Problem with From: and Reply to:

From: Date: Mon, 29 Oct 2001 09:13:15 +0000
Subject: Problem with From: and Reply to:
Groups: php.general 
Request: Send a blank email to php-general+get-72692@lists.php.net to get a copy of this message
Hi, I´m using php to send form data from our web page. When a visitor fills in the form he adds his email address, but I cant get it to show up in the "From:"-line. Instead I get "From: Apache..." which is totally wrong of course. Our auto-reply goes to apache@www.something.se instead of to the senders adress. What do I do wrong? This is my script:
<?php mail("press@something.se", "Press Picture Download", "From: $emailadress\n X-Originating-IP: [$REMOTE_ADDR]\n Content-Type: text/plain; charset=iso-8859-1\n Reply-To: $emailadress\n\n Name: $name\n Company: $company\n Adress: $adress\n Email: $emailadress\n Business: $business\n Send info: $noinfo\n Comments: $comments"); ?>
and this is what I get:
Date: Wed, 24 Oct 2001 14:14:57 +0200 From: Apache <apache@www.something.se> To: per@something.se Subject: Press Picture Download Name: Bla bla bla Company: Bla bla bla Adress: Bla bla bla Email: bla@bla.bla Business: Bla bla bla Send Snowcrash info: Comments: Bla bla bla From: bla@bla.bla X-Originating-IP: [111.111.111.111] Content-Type: text/plain; charset=iso-8859-1 Reply-To: bla@bla.bla
-- ______________________ Snowcrash - Per Hugosson Phone +46 (0)8 442 98 30 Fax +46 (0)8 442 98 11 Cell +46 (0)70 318 49 93

« previous php.general (#72692) next »