Bug #13342: A ! every 2041 letters

From: Date: Mon, 17 Sep 2001 10:17:29 +0000
Subject: Bug #13342: A ! every 2041 letters
Groups: php.dev 
Request: Send a blank email to php-dev+get-66103@lists.php.net to get a copy of this message
From: btrinquier@publicis.fr Operating system: Linux/Apache PHP version: 4.0.4pl1 PHP Bug Type: Mail related Bug description: A ! every 2041 letters Hello, The script : $mail_body = ""; for ($i=0; $i <500; $i++) { $mail_body .= "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; } $subject = "Testing"; mail($adress, $subjet, $mail_body); When receiving the mail, a character ! is inserted every 2041 chars. If the message is changed into : $mail_body .= "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n"; the received mail is good. It is not very usual to send a mail without carriage return, but we discovered this bug sending an HTML message, with <br> and without \n. Introducing some \n resolve the problem. Best regards -- Edit bug report at: http://bugs.php.net/?id=13342&edit=1

« previous php.dev (#66103) next »