ID: 11247 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Assigned Bug Type: Mail related Operating system: PHP Version: 4.0.4pl1 Assigned To: hholzgra Comments: windows mailcode needs a rewrite Previous Comments: --------------------------------------------------------------------------- [2001-06-01 19:21:15] [EMAIL PROTECTED] Sorry, this was with PHP 4.0.4pl1 as first reported. --------------------------------------------------------------------------- [2001-06-01 19:06:57] [EMAIL PROTECTED] 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: [EMAIL PROTECTED]" or "Errors-To: [EMAIL PROTECTED]" or even "Foo-To: [EMAIL PROTECTED]" 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: %srn', 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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11247&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]