ID:               37122
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php-bugs at t43 dot mine dot nu
-Status:           Open
+Status:           Analyzed
-Bug Type:         *Mail Related
+Bug Type:         Documentation problem
 Operating System: Windows
 PHP Version:      5.1.2
 New Comment:

I've managed to get my hands on windows machine to verify this.

It is correct, for what ever reason the sendmail_from php.ini directive
is used as "Return-Path" too and it can't be changed via the
additional_headers parameter.

If "From:" header isn't set as additional header the sendmail_from ini
directive is used.

How do you feel about the following patch?
http://php.is/bugs/37122/win32.mail.ini.patch.txt


Previous Comments:
------------------------------------------------------------------------

[2006-04-23 14:12:32] php-bugs at t43 dot mine dot nu

The comment from [EMAIL PROTECTED] does not match what I have observed, in
Windows. I observe exactly the opposite, sentence by sentence.

I looked at the mails produced on the receiver side, of course. Others
have also observed, and reported, that sendmail_from makes the
Return-Path: header.

------------------------------------------------------------------------

[2006-04-23 13:37:55] [EMAIL PROTECTED]

AFAICT "Return-Path" isn't set by PHP at all unless you specificly put
it in the headers yourself.

The sendmail_from however seems to override (if specified) the "From"
header which either needs to be documented or fixed.

Possible fix: http://php.is/bugs/37122/win32.sendmail.patch.txt

(Reclassified as php bug).
-Hannes

------------------------------------------------------------------------

[2006-04-18 22:51:31] php-bugs at t43 dot mine dot nu

similar bugs for mail() on Windows, but software-related, are 28038,
37073. Mine is documentation-related.

------------------------------------------------------------------------

[2006-04-18 17:36:53] php-bugs at t43 dot mine dot nu

applies to version 5.1.2

------------------------------------------------------------------------

[2006-04-18 17:35:28] php-bugs at t43 dot mine dot nu

Description:
------------
The "sendmail_from" value from php.ini goes into the header
Return-Path:, not into From: When it is not set, the From: header is
required and duplicated into Return-Path:. Return-Path: cannot be set
in the headers.
sendmail_from has priority over From: für the Return-Path:

 A comment to Bug 14407 indeed says that sendmail_from is Return-Path:
but this information is missing in the manual and opposite to what is
written, namely that sendmail_from goes into From:.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37122&edit=1

Reply via email to