|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-26 23:50 UTC] sniper@php.net
[2003-08-27 01:13 UTC] ts at dreamcoder dot dk
[2003-10-07 19:16 UTC] sniper@php.net
[2003-10-08 13:52 UTC] ts at dreamcoder dot dk
[2003-10-09 06:46 UTC] sniper@php.net
[2003-11-04 13:47 UTC] ts at dreamcoder dot dk
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 15:00:01 2025 UTC |
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("example@example.com", "Test Mail", "Hello", "From: John <test@example.com>\r\n" ."X-Engine: This\r\n" ."X-Mailer: PHP/" . phpversion()); ?> Expected result: ---------------- Headers: From: John <test@example.com> X-Engine: This X-Mailer: PHP/4.3.3 Message-Id: <20030826164802.3A2B314152@mail.example.com> Date: Tue, 26 Aug 2003 18:48:02 +0200 (CEST) Hello Actual result: -------------- Headers: From: John <test@example.com> X-Engine: This Message-ID: <1061916489.17277@example.com> Date: Tue, 26 Aug 2003 18:48:09 +0200 X-Mailer: PHP/4.3.3 Message-Id: <20030826164802.3A2B314152@mail.example.com> Date: Tue, 26 Aug 2003 18:48:02 +0200 (CEST) Hello