#37122 [Opn]: sendmail_from is Return-Path:, not From:
| From: | php-bugs at t43 dot mine dot nu | Date: | Sun, 23 Apr 2006 14:12:32 +0000 |
| Subject: | #37122 [Opn]: sendmail_from is Return-Path:, not From: | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96125@lists.php.net to get a copy of this message | ||
ID: 37122
User updated by: php-bugs at t43 dot mine dot nu
Reported By: php-bugs at t43 dot mine dot nu
Status: Open
Bug Type: *Mail Related
Operating System: Windows
PHP Version: 5.1.2
New Comment:
The comment from bjori@php.net 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.
Previous Comments:
------------------------------------------------------------------------
[2006-04-23 13:37:55] bjori@php.net
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