ID: 24400
Updated by: [EMAIL PROTECTED]
Reported By: vitali_e at mail dot ru
Status: Closed
Bug Type: Mail related
Operating System: Windows XP
PHP Version: 4.3.2
New Comment:
The $header parameter is for headers.
The $message parameter is for the message (including multipart
content).
Using mail() to put content in the $header parameter is not in
accordance with its intended use.
By using a function incorrectly, you should not be surprised to find
that it behaves unexpectedly.
Previous Comments:
------------------------------------------------------------------------
[2003-07-28 04:05:54] nagelfar at mail dot ru
Today I have downloaded PHP4.3.3RC1. Problem has not disappeared. My
MailList module converts attachments in mail into BASE64. And problem
is that the first 76-symbols line of the BASE64-encoded attachment is
cut! Even CRLFCRLFCRLF is being converted into CRLF!
------------------------------------------------------------------------
[2003-07-07 04:01:52] vitali_e at mail dot ru
Problem disappeared with PHP4.3.3RC1.
------------------------------------------------------------------------
[2003-07-07 02:41:16] [EMAIL PROTECTED]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-06-30 03:30:19] [EMAIL PROTECTED]
Please show us a small code snippet that reproduces this. Changes might
be that you're doing something wrong.
------------------------------------------------------------------------
[2003-06-30 03:26:44] vitali_e at mail dot ru
Description:
------------
Our old API is using "mail" function to send e-mails. When it needs to
attach files, it creates the mail body and specifies it as a "header"
parameter for the "mail" function. With PHP 4.3.2 on Windows XP mail
send stopped working. The mail received had all of the "CRLFCRLF"
("\r\n\r\n") strings converted to CRLF ("\r\n"), in other words some
kind of header parsing was done by mail function."CRLFCRLF" is
absolutely necessary for "message/rfc822" format. Maybe it looks a bit
odd to use "mail" function for that, but BEFORE it was working for
years, and NOW it doesn't. The "continuity of versions" law is broken.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24400&edit=1