#25556 [NEW]: mail function looses characters

From: Date: Tue, 16 Sep 2003 12:03:51 +0000
Subject: #25556 [NEW]: mail function looses characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47625@lists.php.net to get a copy of this message
From: te at mxu dot de Operating system: Win32 (w2k) PHP version: 4.3.3 PHP Bug Type: Mail related Bug description: mail function looses characters Description: ------------ hello, i encountered a problem when sending mails longer than approx. 1K. mail (and imap_mail) seem to loose characters every 1k. this happend after upgrading to 4.3.3 (from 4.0.?or so) greetings from munich thorsten engel Reproduce code: --------------- $body = ''; for ($i=0; $i<100; $i++) { for ($j=0; $j<76; $j++) $body .= 'a'; $body.="\r\n"; } mail ("te@mxu.de","subj",$body); imap_mail ("te@mxu.de","subjimap",$body); Expected result: ---------------- aaaaa (76 chars per line) aaaaa aaaaa aaaaa aaaaa aaaaa Actual result: -------------- aaaaa (some lines only have 75 chars!!) aaaaa aaaa aaaaa aaaaa -- Edit bug report at http://bugs.php.net/?id=25556&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25556&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25556&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25556&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25556&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25556&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25556&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25556&r=support Expected behavior: http://bugs.php.net/fix.php?id=25556&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25556&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25556&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25556&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25556&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25556&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25556&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25556&r=gnused

« previous php.bugs (#47625) next »