#23525 [NEW]: Mail header not always interpreted

From: Date: Wed, 07 May 2003 11:55:55 +0000
Subject: #23525 [NEW]: Mail header not always interpreted
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39226@lists.php.net to get a copy of this message
From:             joce at presence-pc dot com
Operating system: linux
PHP version:      4.3.2RC2
PHP Bug Type:     Mail related
Bug description:  Mail header not always interpreted

Hi,

With the following script :

<?
$headers_html  = "MIME-Version: 1.0\n";
$headers_html .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
$headers_html .= "From: Presence PC - Lettre express
<serveur@presence-pc.com>\n";
$headers_html .= "Return-Path: serveur@presence-pc.com\n";

mail('joc@presence-pc.com', 'test', 'test', $headers_html);
?>

Using PHP-4.3.2RC1, all works just fine and I'm receiving :

'test'

Using PHP-4.3.2RC2, header infos are no longer rightly interpreted, and
I'm receiving a mail containing :

'MIME-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
From: Presence PC - Lettre express <serveur@presence-pc.com>



test'

(ie only Return-Path header info is interpreted)

Regards,
  Jocelyn Fournier
-- 
Edit bug report at http://bugs.php.net/?id=23525&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23525&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23525&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23525&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23525&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23525&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23525&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23525&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23525&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23525&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23525&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23525&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23525&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23525&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23525&r=gnused



Thread (3 messages)

« previous php.bugs (#39226) next »