ID: 21798 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Mail related Operating System: Windows XP PHP Version: 4.3.0 New Comment:
The pattern you're reference is only applied to the headers (passed as the fourth parameter of mail() ) which should never have a double \r\n as that delineates the header from the body. Are you attempting to send content inside your header? Content (even multipart/mime content) should ALWAYS be sent in the body. Previous Comments: ------------------------------------------------------------------------ [2003-01-21 11:19:31] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=21798&edit=1