ID:               20056
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Mail related
 Operating System: Windows XP Pro
 PHP Version:      4.2.3
 New Comment:

Ok, i'm not mad, i found in sendmail.c in php-4.3.0pre2\win32


/* 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   ""


This causes my pb (with 4.3), as mime client i've tested use multiple
\r\n to separate fields ( a least outlok express uses and needs that ).


Previous Comments:
------------------------------------------------------------------------

[2002-10-28 08:35:20] [EMAIL PROTECTED]

Sory, I dont't think it's a SMTP configuration error as everthing was
ok with the SMTP server before the update to PHP 4.3.

With 4.2.3, big strings in the "additional_headers" parameter where
causing PHP HANG (and not SMTP server). Smaller strings where ok and
unmodified.

With 4.3, PHP no more hangs, BUT The strings in "additional_headers"
are modified (no double CR/LF allowed).

The SMTP Server is listening to usual port, and sends e-mails correctly
without touching any part of the mail when comming from ather apps than
PHP.

------------------------------------------------------------------------

[2002-10-28 07:57:54] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Sounds like a configuration issue with your Windows' SMTP server.

------------------------------------------------------------------------

[2002-10-25 05:59:12] [EMAIL PROTECTED]

The scripts no more hangs the machine, but ... does'nt work any more.

Outlook express cant't recognise the mime format.

The difference between the results of the same script on Linux/4.2.3
and XP/4.3 seem to be "\r\n\r\n" are changed to "\r\n".

I'm not sure, but i think the double /r/n/r/n was compulsory in some
cases to separate mime blocks

Tried "\r\n \r\n" instead, witch is not changed but it does not work.

Everything else "\r\n\r\n\n\r" ... is each time changed to "\r\n".

------------------------------------------------------------------------

[2002-10-24 08:23:05] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-10-24 05:23:04] [EMAIL PROTECTED]

This bug happends only on 4.2.3/Win XP/IIS, (developpement site) our
web site runs the scripts corectly on 4.2.3/Linux/Appache.

Whe have a function to send by e-mail a web page from our site,
including pictures (mime multipart) if used.

All works fine, but on our developpement system (XP/IIS) it seems that
only very small message works (2kb ok, 7 kb hangs)

To send mime compliant message all text is prepared in a single string
$mtext and sent with:

$is_sent=mail($to, $subject,"",$mtext);

result is a send a report bug window to microsoft after a 5 sec wait.

Printing text with flush() during script made us sure the bug is in the
mail function.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20056&edit=1

Reply via email to