ID:               25254
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ts at dreamcoder dot dk
-Status:           Open
+Status:           Bogus
 Bug Type:         Mail related
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

Either using \r\n or just \n works just fine for me.
Not PHP bug.



Previous Comments:
------------------------------------------------------------------------

[2003-08-26 11:59:33] ts at dreamcoder dot dk

Description:
------------
When running the attached code, the mail headers will not be sent
correctly

This results in the mailheaders becomming corrupt and send two
linebreaks, thus dumping the remaining headers to the mail body. Notice
how two Message-Id's and Date headers are sent with the mail

The attached code worked fine in PHP 4.3.2. But also works when using
\n instead of \r\n

Reproduce code:
---------------
<?php
    echo mail("[EMAIL PROTECTED]", "Test Mail", "Hello",
         "From: John <[EMAIL PROTECTED]>\r\n"
        ."X-Engine: This\r\n"
        ."X-Mailer: PHP/" . phpversion());
?>

Expected result:
----------------
Headers:

From: John <[EMAIL PROTECTED]>
X-Engine: This
X-Mailer: PHP/4.3.3
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 26 Aug 2003 18:48:02 +0200 (CEST)

Hello

Actual result:
--------------
Headers:

From: John <[EMAIL PROTECTED]>
X-Engine: This
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 26 Aug 2003 18:48:09 +0200

X-Mailer: PHP/4.3.3
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 26 Aug 2003 18:48:02 +0200 (CEST)

Hello


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25254&edit=1

Reply via email to