Re: mail() source code

From: Date: Tue, 28 May 2002 17:12:26 +0000
Subject: Re: mail() source code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99513@lists.php.net to get a copy of this message
Hello, On 05/28/2002 08:27 AM, Anthony Rodriguez wrote:
When mail() sends, via sendmail, an e-mail to an invalid address, it's returned to the "envelope-sender" (e.g.: the ISP), NOT returned to the "from" address, or the "return-path" address, etc. that are included with mail()'s 4th parameter.
The 4th parameter is not for putting headers but rather to pass arguments to sendmail. The -f argument sets the return path which is the same thing as the envelope sender. Of course this only works Unix. On Windows you need to use the sendmail_form option of php.ini -- Regards, Manuel Lemos

« previous php.general (#99513) next »