#25408 [Com]: mail function drops some characters from body

From: Date: Sun, 07 Sep 2003 10:33:15 +0000
Subject: #25408 [Com]: mail function drops some characters from body
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47171@lists.php.net to get a copy of this message
ID: 25408 Comment by: ggdavid at newmail dot net Reported By: zabihi at iranculture dot org Status: Open Bug Type: Mail related Operating System: Win2000 Adv. - SP4 - IIS5.0 PHP Version: 4.3.3 New Comment: Yes, This is bug in PHP 4.3.3 I use php_imap.dll module from PHP 4.3.2 and use imap_mail() function instead mail() Previous Comments: ------------------------------------------------------------------------ [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("admin@iranculture.org","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

« previous php.bugs (#47171) next »