From: jotta at mailbox dot hu Operating system: Linux 2.2.20 PHP version: 4.2.3 PHP Bug Type: Mail related Bug description: mail func strips linefeeds from subject
Before sending an email, first I'm using mb_encode_mimeheader() to prepare the subject (it's very important because of the Central European national characters) $subject = mb_encode_mimeheader( trim($_POST['i_subject']), 'iso-8859-2', 'Q', "\n\t" ); \n\t is used, because e-mail RFCs state, that long lines should look be broken like this: Subject: very long subject etc. etc. and will continue here The problem exactly: mail() function strips the \n characters, this way the e-mails are sent in a non-standard way (even 200+ characters long subject lines), and therefore some servers and/or mail reading softwares fail to transfer/display the email correctly. -- Edit bug report at http://bugs.php.net/?id=22355&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22355&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22355&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22355&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22355&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22355&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22355&r=support Expected behavior: http://bugs.php.net/fix.php?id=22355&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22355&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22355&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22355&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22355&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22355&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22355&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22355&r=gnused