#31496 [Opn->Fbk]: body output of mail() adds eroneous characters breaking output

From: Date: Thu, 13 Jan 2005 03:25:19 +0000
Subject: #31496 [Opn->Fbk]: body output of mail() adds eroneous characters breaking output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72032@lists.php.net to get a copy of this message
 ID:               31496
 Updated by:       sniper@php.net
 Reported By:      cessner at centrosus dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Mail related
 Operating System: Fedora Core
 PHP Version:      4.3.10
 New Comment:

Drop also \r from the same place..



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

[2005-01-12 19:38:37] cessner at centrosus dot com

I think I found the problem. There seems to be a limit 
for the message body in html and potentially text output 
as well at 2040 characters for mail(). I ran a few tests 
using different forms and different input and the "!" is 
added always as the 2041st character.

-Christian

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

[2005-01-12 18:49:21] cessner at centrosus dot com

changed:

$headers .= "From: Christian Essner 
<cessner@centrosus.com>\r\n"; 

to

$headers .= "From: Christian Essner 
<cessner@centrosus.com>\r";

no change.

-Christian

Are you able to reproduce the problem?

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

[2005-01-12 05:49:47] jed@php.net

I'm sorry, try dropping the trailing \n. I'm going to sleep.

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

[2005-01-12 05:47:44] jed@php.net

$headers .= "From: Christian Essner <cessner@centrosus.com>\n"; 

Should be:

$headers .= "From: Christian Essner <cessner@centrosus.com>\r\n"; 

I just caught that as I was passing through.

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

[2005-01-12 01:31:31] cessner at centrosus dot com

Here is the code:

http://www.centrosus.com/mail/code.html

You may enter your email address here and have the html 
result sent to your email and check the source yourself 
when you receive the email.

http://www.centrosus.com/mail/enter_email.html

-Christian

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

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/31496

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


Thread (19 messages)

« previous php.bugs (#72032) next »