note 15107 added to function.mail

From: Date: Tue, 28 Aug 2001 11:04:02 +0000
Subject: note 15107 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-17247@lists.php.net to get a copy of this message
I am currently coding a web mail system using PHP. In the interests of security I want to specify my own "Received: from" header that contains the address of the client accessing the web server. I have done so in the headers I feed to to the mail() function, but when the mail arrives the mail server's "Received: from" header is at the top, followed by "To:", "From:", and then my own Received header. Is it the mail() function that is doing it in this order, or my mta? If it is the mail() function which I am presuming it is, is there any way to force it to deliver mail with the headers in a more sensible order? http://www.php.net/manual/en/function.mail.php

« previous php.notes (#17247) next »