Bug #13342 Updated: A ! every 2041 letters
| From: | hholzgra@php.net | Date: | Mon, 17 Sep 2001 10:36:58 +0000 |
| Subject: | Bug #13342 Updated: A ! every 2041 letters | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66105@lists.php.net to get a copy of this message | ||
ID: 13342
Updated by: hholzgra
Reported By: btrinquier@publicis.fr
Old Status: Open
Status: Feedback
Bug Type: Mail related
Operating System: Linux/Apache
PHP Version: 4.0.4pl1
New Comment:
most likely sendmail related
as PHP mail() for unix just passes the
message text to the local sendmail binary via popen()
could someone please check the SMTP RFCs
for line length limits ?
Previous Comments:
------------------------------------------------------------------------
[2001-09-17 06:17:29] btrinquier@publicis.fr
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 this bug report at http://bugs.php.net/?id=13342&edit=1