Bug #11247 Updated: mail() on Win32 messes with Reply-To: or Errors-To: fields,
| From: | mfischer@php.net | Date: | Mon, 27 May 2002 21:47:27 +0000 |
| Subject: | Bug #11247 Updated: mail() on Win32 messes with Reply-To: or Errors-To: fields, | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8699@lists.php.net to get a copy of this message | ||
ID: 11247
Updated by: mfischer@php.net
Reported By: olivier.cahagne@epita.fr
-Status: Feedback
+Status: Closed
Bug Type: Mail related
Operating System: Windows 2000
PHP Version: 4.0.4pl1
Assigned To: hholzgra
New Comment:
Closing then
Previous Comments:
------------------------------------------------------------------------
[2002-05-27 17:40:57] olivier.cahagne@epita.fr
Now works fine using PHP 4.2.1 on Win2k.
This was fixed indeed with win32/sendmail.c v.1.23:
http://cvs.php.net/diff.php/php4/win32/sendmail.c?r1=1.22&r2=1.23&ty=h
------------------------------------------------------------------------
[2002-05-15 06:18:42] mfischer@php.net
I believe this behaviour isn't true anymore for To: , can you verify
this with latest stable win32 release?
------------------------------------------------------------------------
[2001-06-22 18:28:58] hholzgra@php.net
windows mailcode needs a rewrite
------------------------------------------------------------------------
[2001-06-01 19:21:15] olivier.cahagne@epita.fr
Sorry, this was with PHP 4.0.4pl1 as first reported.
------------------------------------------------------------------------
[2001-06-01 19:06:57] olivier.cahagne@epita.fr
PHP 4.0.5
Platform: Win32 only.
mail() -> SMTP bug.
Sending a mail on Win32 platform with php.ini having set smtp_server
correctly works fine.
However, when setting an additional header like:
"Reply-To: foo@isp.com\r\n"
or
"Errors-To: foo@isp.com\r\n"
or even
"Foo-To: foo@isp.com\r\n"
will result in an e-mail not containing any To: field.
I looked at win32/sendmail.c and saw these lines
[...]
if(!xheaders || !strstr(xheaders, "To:")){
p += sprintf(p, "To: %s\r\n', mailTo);
[...]
I believe it incorrectly recognize any "xxxxx-To:" Field and then
messes the mail headers.
This bug doesn't occur on Unix platforms using sendmail, postfix, etc.
The SMTP server used here works fine if I use my own SMTP class.
However, I believe this is a bug so it can be fixed by someone more
knowledgable than me.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11247&edit=1