From: Operating system: Debian PHP version: 5.2.17 Package: Mail related Bug Type: Bug Bug description:Bug in PHPmail
Description: ------------ Email that shows headers Test script: --------------- //some $_POST['email'] validations $to = $_POST['email']; $subject = 'Ordinazione Patronum.tk'; $headers = 'From: patronum...@patronum.tk' . "\r\n"; $headers .= 'Reply-To: patronum...@patronum.tk' . "\r\n" . 'X-Mailer: PHP/' . phpversion(). "\r\n". "MIME-Version: 1.0\r\n". "Content-Type: text/html; charset=\"iso-8859-1\"\r\n". "Content-Transfer-Encoding: 7bit\n\n"; mail($to, $subject, $messaggio, $headers); Expected result: ---------------- I want the email headers to don't appear in the email content Actual result: -------------- A mail with the headers in the content: example: Reply-To: patronum...@patronum.tk X-Mailer: PHP/5.2.6-1+lenny9 MIME-Version: 1.0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <20110715192326.c5b9c772...@patronum.tk> Date: Fri, 15 Jul 2011 21:23:26 +0200 (CEST) La sua ordinazione è stata completata con successo. <br>Totale: 100 -- Edit bug report at https://bugs.php.net/bug.php?id=55216&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55216&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55216&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55216&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55216&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55216&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55216&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55216&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55216&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55216&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55216&r=support Expected behavior: https://bugs.php.net/fix.php?id=55216&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55216&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55216&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55216&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55216&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55216&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55216&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55216&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55216&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55216&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55216&r=mysqlcfg Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55216&r=trysnapshot54