Thomas "omega" Henning wrote:
> And as you see From: [EMAIL PROTECTED] 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("[EMAIL PROTECTED]", "the subject", $message,
      "From: webmaster@$SERVER_NAME", "-fwebmaster@$SERVER_NAME");

Note: This fifth parameter was added in PHP 4.0.5.
[...]

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de/ +49-711-99091-77


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to