Re: Problem with From: and Reply to:

From: Date: Mon, 29 Oct 2001 09:27:57 +0000
Subject: Re: Problem with From: and Reply to:
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72694@lists.php.net to get a copy of this message
In article <p05100304b802cdc3b801@[212.247.198.195]>, per.hugosson@snowcrash.se (Per Hugosson) wrote: > 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"); > >?> Try changing the line terminators from "\n" to (RFC-compliant) "\r\n". -- CC

« previous php.general (#72694) next »