R.A. Imhoff:
> Thank you for your suggestions!
> 
> I did set the "From: " correctly, both in the php.ini and in the
> php code that calls mail(), but this only sets the "From:" and
> not the "Return-path:" I agree that the message-id is not that
> important, but it would be nice if one could have the "Return-path:"
> reflect the same domain as "From:"
>
> I have this in php.ini (the -r parameter is supposed to set the
> return-path, but seems to have no effect):
>
>       sendmail_path = "sendmail -t -i -f [email protected] -r
>       [email protected]"

According to PHP documentation, extra sendmail arguments must be
supplied with the FIFTH mail() argument.

http://us.php.net/manual/en/function.mail.php says:

    bool mail  ( string $to  , string $subject  , string $message
        [, string $additional_headers  [, string $additional_parameters
        ]] )

    The additional_parameters parameter can be used to pass additional
    flags as command line options to the program configured to be
    used when sending mail, as defined by the sendmail_path
    configuration setting. For example, this can be used to set
    the envelope sender address when using sendmail with the -f
    sendmail option.

So there is the answer, for posteriority.

        Wietse

Reply via email to