Hi,

Im 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
[EMAIL PROTECTED] instead of to the senders adress. What do I
do wrong?

This is my script:

><?php
>mail("[EMAIL PROTECTED]", "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 <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Press Picture Download
>
>  Name: Bla bla bla
>  Company: Bla bla bla
>  Adress:  Bla bla bla
>  Email: [EMAIL PROTECTED]
>  Business: Bla bla bla
>  Send Snowcrash info:
>  Comments: Bla bla bla
>
>From: [EMAIL PROTECTED]
>X-Originating-IP: [111.111.111.111]
>Content-Type: text/plain; charset=iso-8859-1
Reply-To: [EMAIL PROTECTED]
--
______________________
Snowcrash - Per Hugosson
Phone +46 (0)8 442 98 30
Fax +46 (0)8 442 98 11
Cell +46 (0)70 318 49 93

Reply via email to