PHP send mail header problem.. Any help please

Hi I am having an issue with an automated script I have set up. The way the script works is by pulling email addresses from a table in the DB for each member. The email is coded to be displayed as html in the recipients email box.

The problem is when the script sends the actual email to the member when you view the email the email address the email was sent to is appearing above the banner. I am guessing it is a header problem. Here is my actual send mail script.

Maybe I am missing something or did something wrong. If any other portion of the script is needed let me know. I only included this portion because this is what send the email and header info. Thanks all.

                $to = $ag[email];
                $subject = "$zq[firstname] $zq[lastname] selected  you!";

                $headers = "MIME-Version: 1.0\
";
                $headers .= "Content-type: text/html; charset=iso-8859-1\
";
                $headers .= "Content-Transfer-Encoding: 8bit\
";
                $headers .= "From:\\"$zq[firstname] $zq[lastname]\\" <$zq[email]>\
";
                $headers .= "X-Priority: 1\
";
                $headers .= "X-MSMail-Priority: High\
";
                $headers .= "X-Mailer: PHP/" . phpversion()."\
";

                        $message = strip_tags($_POST[message]);
                        $message .= "
<HTML><HEAD>
<STYLE>BODY {
        BACKGROUND: #EFD9B0; MARGIN: 0px; FONT: 10px verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif; COLOR: #AD0101
}
a:link
{
        color: #AD0101;
        text-decoration: none;
        font: 12px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
        font-weight: bold;
}
a:visited
{
        color: #AD0101;
        text-decoration:  none;
        font: 12px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
        font-weight: bold;
}
a:hover
{
        color: C26865;
        text-decoration: none;
        font: 12px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
        font-weight: bold;
}
a:active
{
        color: C5A574;
        text-decoration: none;
        font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
        font-weight: bold;
}
</STYLE>
</HEAD>
<BODY bgColor=#efd9b0>
<TABLE width=\\"100%\\" cellpadding=2>
  <TBODY bgColor=#efd9b0>
  <TR>
    <TD width=\\"100%\\" colSpan=5 height=\\"100%\\"><IMG src=\\"http://www.dirtydawgz.com/images/-banner1.jpg\\"></TD></TR>
  <TR>
    <TD colSpan=5>
      <HR width=\\"100%\\" color=#AD0101 SIZE=2>
    </TD></TR>
 <TR>
    <TD width=\\"100%\\" colSpan=5 height=20>&nbsp; </TD></TR>
  <TR>
    <TD width=\\"5%\\" height=\\"100%\\">&nbsp;</TD>
    <TD width=\\"90%\\" colSpan=3 height=\\"100%\\"><FONT face=Arial color=AD0101
      size=2>&nbsp; Content
      <br>
      <br>
      &nbsp; Content
      <br>
      <br>
      &nbsp; Content
      <br>
      <br>
      &nbsp; Content
      <br>
      <br>
</FONT></TD>
    <TD width=\\"5%\\" height=\\"100%\\">&nbsp;</TD>
</TR>
  <TR>
    <TD width=\\"100%\\" colSpan=5 height=20>&nbsp; </TD></TR>
  <TR>
    <TD width=\\"5%\\" height=\\"100%\\">&nbsp;</TD>
    <TD colspan=3 width=\\"90%\\" height=\\"100%\\"><FONT face=Arial color=AD0101
      size=2>$zq[firstname]
      </FONT></TD>
    <TD width=\\"5%\\" height=\\"100%\\">&nbsp;</TD>
    </TR>
  <TR>
    <TD width=\\"100%\\" colSpan=5 height=20>&nbsp; </TD></TR>
  <TR>    <TD colSpan=5>
      <HR width='\\"100%\\"' color=#AD0101 SIZE=2>
    </TD></TR>
  <TR></TR></TBODY></TABLE></BODY></HTML>";

                mail($to, $subject, $message, $headers);

         $setassent="UPDATE _emails set greeting='y' where email='$ag[email]'";
         mysql_query($setassent) or die("Could not set as send");

                    $message = strip_tags($_POST[message]); 

What’s this doing above the <html> tag? What’s in $_POST[‘message’]?

My bad. Thanks for pointing that out. That line was from testing I need to remove it and overlooked it. Thanks.

Any help with the email address appearing above the header? I know you have helped me before dan so ty.

Can you post a screenshot? I don’t see any problems…