#22962 [Csd]: mail-function uses only \n to seperate fields To & Subject
| From: | pollita@php.net | Date: | Sun, 11 May 2003 18:53:41 +0000 |
| Subject: | #22962 [Csd]: mail-function uses only \n to seperate fields To & Subject | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39457@lists.php.net to get a copy of this message | ||
ID: 22962
Updated by: pollita@php.net
Reported By: uroeder at gmx dot net
Status: Closed
Bug Type: Mail related
Operating System: Linux
PHP Version: 4.3.1
New Comment:
What edink's last comment didn't mention is that I reverted mail() back
to its original behavior. No need to worry about comming up with
examples. 4.3.2's final release will do just what you want.
Previous Comments:
------------------------------------------------------------------------
[2003-05-11 10:40:15] om at insign dot ch
pollita: I can't post any example yet, but I'm now sure there is a real
problem: an "original" php-4.3.2rc2 is broken, while a php-4.3.2rc2
compiled with the mail.c from 4.3.1 is working fine.
The used class to send the mails is an old version (1.3.4) of the HTML
Mime mail by Richard Heyes (http://www.phpguru.org/mime.mail.html).
We'll try if it works better with the current version, but in every
case, there _is_ a problem with the current mail.c.
regards,
Olivier
------------------------------------------------------------------------
[2003-05-07 07:15:34] edink@php.net
This bugfix is wrong. \r\n is used in headers in SMTP communication
which mail() uses on Windows. Since Unix version of mail() pipes output
to mta direcly \r\n may confuse it and as we have seen from several
reports it breaks mail() functionality.
------------------------------------------------------------------------
[2003-05-06 18:59:30] pollita@php.net
Pasting some headers (or entire message content) would be a big plus.
The fix applied here should not adversely affect Outlook, but it's
worth some investigation.
------------------------------------------------------------------------
[2003-05-06 16:28:01] om at insign dot ch
Hi,
can it be that the bug you fixed last month
( http://bugs.php.net/bug.php?id=22962 ) broke
something in
the mail() command ?
We have a kind of CMS (www.icms.ch) with a mailclass which sends
mails with attachments: with php 4.3.1 it works fine, with 4.3.2rc2
it "looks" fine too, but outlook users can't read the mail
anymore: pretty wired... (no changes others than php version)
I'll make some more tries tomorrow, but maybe you will have
an idea before :)
Regards from Switzerland,
Olivier
------------------------------------------------------------------------
[2003-04-01 00:28:07] pollita@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Fixed (partially) in CVS.
The \n characters surrounding the message body have been left as \n
only while \n characters in headers have been expanded to \r\n. This
is because of tests with multiple MTAs showing inconsistent behavior
which is best left as is.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22962
--
Edit this bug report at http://bugs.php.net/?id=22962&edit=1