#25408 [Bgs->Csd]: mail function drops some characters from body
ID: 25408 User updated by: zabihi at iranculture dot org Reported By: zabihi at iranculture dot org -Status: Bogus +Status: Closed Bug Type: Mail related Operating System: Win2000 Adv. - SP4 - IIS5.0 PHP Version: 4.3.3 New Comment: I reviewed bugs #25346, #25357 and #25333, but I couldn't find any solution except downgrading to 4.3.2 or using imap_mail() instead. Previous Comments: [2003-09-07 11:12:29] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. *sigh* [2003-09-07 01:10:13] zabihi at iranculture dot org Description: When body of message is more than 1024 characters, the 1024th character is dropped when sending mail. This problem occurs with every 1024 characters in the body, so 2048th and 3072nd characters are also dropped. Mail server is MDaemon 6.7 and no error is reporting. Reproduce code: --- $body="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\n"; $body.=$body; $body.=$body; $body.=$body; $body.=$body; $body.=$body; $body.=$body; if (mail("[EMAIL PROTECTED]","Testing PHP Mail", $body, "")) echo "OK!"; else echo "Error!"; Expected result: When we receive the message the following string should be repeated 64 times: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890" Actual result: -- When we receive the message the following string is repeated 64 times but in line 17 the "P" character is dropped and in line 33 the "f" character is dropped and so on: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890" -- Edit this bug report at http://bugs.php.net/?id=25408&edit=1
#25408 [NEW]: mail function drops some characters from body
From: zabihi at iranculture dot org Operating system: Win2000 Adv. - SP4 - IIS5.0 PHP version: 4.3.3 PHP Bug Type: Mail related Bug description: mail function drops some characters from body Description: When body of message is more than 1024 characters, the 1024th character is dropped when sending mail. This problem occurs with every 1024 characters in the body, so 2048th and 3072nd characters are also dropped. Mail server is MDaemon 6.7 and no error is reporting. Reproduce code: --- $body="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\n"; $body.=$body; $body.=$body; $body.=$body; $body.=$body; $body.=$body; $body.=$body; if (mail("[EMAIL PROTECTED]","Testing PHP Mail", $body, "")) echo "OK!"; else echo "Error!"; Expected result: When we receive the message the following string should be repeated 64 times: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890" Actual result: -- When we receive the message the following string is repeated 64 times but in line 17 the "P" character is dropped and in line 33 the "f" character is dropped and so on: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890" -- Edit bug report at http://bugs.php.net/?id=25408&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25408&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25408&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25408&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25408&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25408&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25408&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25408&r=support Expected behavior: http://bugs.php.net/fix.php?id=25408&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25408&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25408&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25408&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25408&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25408&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25408&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25408&r=gnused