|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-07 11:12 UTC] sniper@php.net
[2003-09-08 00:15 UTC] zabihi at iranculture dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
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"