title: AS3/PHP - Textfield's text by email keeping the formatting, colors, etc
body: <p>My .swf is a game. When the game ends, the player can see a textual game report. This game report is generated in a Dynamic Textfield. The player can send the report by e-mail. It's easy to send the email with the report text, it works just like a form. 
  The problem is that I need to keep all the colors, bolds, formatting, etc. I don't want a plain black text with no bolds, colors or formatting. So, my simple form solution doesn't work.</p>
  
  <p>I'm using this simple PHP code:</p>
  
  <pre><code>&lt;?php
  
  $message = $_POST["message"];
  
  $recipient = $_POST["email"];
  
  utf8_decode($mensagem);
  
  $header = "MIME-Version: 1.0\r\n";
  $header .= "Content-type: text/html; charset=utf-8\r\n";
  $header .= "Reply-to: ".$_POST['email']."\r\n";
  $header .= "From: My swf";
  
  $subject = "Relatorio";
  
  $msg = "&lt;b&gt;Report:&lt;/b&gt; $message\n&lt;br /&gt;";
  
  mail($recipient, $subject, $msg, $header);
  ?&gt;
  </code></pre>
  
  <p>A friend read something about sending the text as a ByteArray, but we don't understand how to do it. I just found lots of people sending images, but we want to send text.</p>
  
  <p>Thanks!</p>