ID: 13342 Updated by: hholzgra Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]