# PHP Email Output Issues

**URL:** <https://forum.kirupa.com/t/php-email-output-issues/233943>\
**Category:** programming\
**Created:** [July 28, 2007, 3:11pm UTC](https://forum.kirupa.com/t/php-email-output-issues/233943 "2007-07-28T15:11:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webdiva3000](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@webdiva3000](https://forum.kirupa.com/u/webdiva3000)\
**Post date:** [July 28, 2007, 3:11pm UTC](https://forum.kirupa.com/t/php-email-output-issues/233943/1 "2007-07-28T15:11:40Z")

</div>

Hi there,

I’ve successfully set up a simple PHP contact form (name, email, message) using Flash 8. However, the email posted through the server shows a bunch of TEXTFORMAT LEADING code in the From and Reply-To sections of the email. In the body of the email it says:

\<TEXTFORMAT LEADING="-1"\>\<P ALIGN=“LEFT”\>\<FONT FACE=“Century Gothic” SIZE=“12” COLOR="#666666" LETTERSPACING=“0” KERNING=“0”\>testing this thing out…\</FONT\>\</P\>\</TEXTFORMAT\>

My PHP file says the following:

\<?php

$sendTo = "rrrrrrr@nyc.rr.com";  
$subject = “Website Messages”;

$headers = “From: " . $\_POST[“firstName”] .” “. $\_POST[“lastname”] . “\<” . $\_POST[“email”] .”\>  
";

$headers .= "Reply-To: " . $\_POST[“email”] . "  
";

$headers .= "Return-path: " . $\_POST[“email”];

$message = $\_POST[“message”];

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

?\>

I followed this tutorial - [http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](http://www.kirupa.com/developer/actionscript/flash_php_email.htm). Do you think it’s something wrong in my Flash file. Please steer me in the right direction.

Many thanks in advance!
