Re: Help pls!! mail() function header problems
| From: | Hartmut Holzgraefe | Date: | Fri, 12 Jul 2002 09:40:02 +0000 |
| Subject: | Re: Help pls!! mail() function header problems | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85904@lists.php.net to get a copy of this message | ||
Thomas "omega" Henning wrote:
And as you see From: test@mediasoft.ro is in the header section of the mail() function. What can I do to fix this problem?#1 read the docs #2 ask the php-general@ list, not the php-dev@ list php-dev is about development of future version of php, not about doing developement with php, our native language is more like C around here ;) from the mail() manual page: ( http://php.net/mail ) [...] The additional_parameters parameter can be used to pass additional parameters to the program configured to use when sending mail using the sendmail_path configuration setting. For example, this can be used to set the envelope sender address when using sendmail. You may need to add the user that your web server runs as to your sendmail configuration to prevent a 'X-Warning' header from being added to the message when you set the envelope sender using this method. Example 3. Sending mail with extra headers and setting an additional command line parameter. mail("nobody@example.com", "the subject", $message,
"From: webmaster@$SERVER_NAME", "-fwebmaster@$SERVER_NAME");Note: This fifth parameter was added in PHP 4.0.5. [...] -- Hartmut Holzgraefe hartmut@six.de http://www.six.de/ +49-711-99091-77