Losing random characters in HTML email

From: ,hj (webmaster_at_mail.com)
Date: 11/28/03


Date: Fri, 28 Nov 2003 19:21:39 +0000 (UTC)


From: ",hj" <webmaster@mail.com>
Subject: Losing random characters in HTML email
Date: 28 November 2003 17:21

I've narrowed down my code as much as I can so that I can show you this bug.
The reason the a's are there and not removed is because if I remove them the
problem doesn't show itself. It seems that there is a pattern and the nth
character does not show. Weird stuff.

<?php
        $content = '

        <html>
        <head>
            <title>aaaaaaa :: title</title>
                <META http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
                <META name="Description" content="aaaaaar -
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae.">
                <META name="Keywords"
content="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaae">
                <LINK rel="style***"
href="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" type="text/css">
        </head>
        <body>
contentdfdfdf
        </body>
        </html>';
        $header = "Return-Path: failed@aaaaaaa.com\r\n";
        $header .= "From: Gamblar <accounts@aaaaaaa.com>\r\n";
        $header .= "Content-Type: text/html;
        charset=iso-8859-1;\r\n\r\n";

mail("webmaster@aaaaaaaaaaa.com","accounts@aaaaaaa.com",$content,$header);
?>

Try that code, changing the first mail attribute to your email address. You
should get this output: "contentdfdfdf </html".

Does anyone know what I'm doing wrong? Bug, perhaps?

Thanks in advance,

Keiron


Quantcast