note 15107 rejected and deleted from function.mail by jmcastagnetto

From: Date: Wed, 29 Aug 2001 01:09:24 +0000
Subject: note 15107 rejected and deleted from function.mail by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-17276@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?

« previous php.notes (#17276) next »