From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.3.0 PHP Bug Type: *Mail Related Bug description: New mail() function disable some functionalities
We use a small php script to sent multipart/mime mails with text/html and pics included in the same mail. People are reading these mails mostly with Outlook Express. Outlook Express seems to require some mime sections separated by \r\n\r\n, and maybe other mail readers need it too (no test made for now). but since 4.3.0 a part of code in the win32\sendmail.c file replaces every double \r\n by a single one. I don't know why these changes have been done, but please disable them or give us a way to disable this feature by the php.ini file, without having to change and compile the whole project (we don't have a C compiler) ************************************************** Code mentioned above. ************************************************** /* This pattern removes \r\n from the start of the string, * \r\n from the end of the string and also makes sure every line * is only wrapped with a single \r\n (thus reduces multiple * occurences of \r\n between lines to a single \r\n) */ #define PHP_WIN32_MAIL_RMVDBL_PATTERN "/^\r\n|(\r\n)+$/m" #define PHP_WIN32_MAIL_RMVDBL_REPLACE "" -- Edit bug report at http://bugs.php.net/?id=21798&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21798&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21798&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21798&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21798&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21798&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21798&r=support Expected behavior: http://bugs.php.net/fix.php?id=21798&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21798&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21798&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21798&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21798&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21798&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21798&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21798&r=gnused