# Problems with PHP email

**URL:** <https://forum.kirupa.com/t/problems-with-php-email/210398>\
**Category:** programming\
**Created:** [December 18, 2006, 3:00pm UTC](https://forum.kirupa.com/t/problems-with-php-email/210398 "2006-12-18T15:00:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![25OLLIE25](https://avatars.discourse-cdn.com/v4/letter/2/8c91f0/32.png) [@25OLLIE25](https://forum.kirupa.com/u/25OLLIE25)\
**Post date:** [December 18, 2006, 3:00pm UTC](https://forum.kirupa.com/t/problems-with-php-email/210398/1 "2006-12-18T15:00:27Z")

</div>

Hi,

Wondered if anybody could help. Created a simple email form on flash and created a simple PHP file to make it work. Unfortunately I can’t seem to get it to work. I recieve it in the correct email and the @subject come through, but i get this message in my “from” section:

“\<TEXTFORMAT LEADING=“2”\>\<P ALIGN=“LEFT”\>\<FONT FACE=“Verdana” SIZE=“13” COLOR=”#000000" LETTERSPACING=“0” KERNING=“0”\>[ollie\_mott@yahoo.co.uk](mailto:ollie_mott@yahoo.co.uk)\</FONT\>\</P\>" \<[/TEXTFORMAT@fhlinux222.fasthosts.co.uk](http://www.kirupa.com/forum/)\>

**[ollie\_mott@yahoo.co.uk](mailto:ollie_mott@yahoo.co.uk)**, was the only bit I wanted in there.

This also happens in the main message, surrounding my input with alignment and size etc. Is there a simple reason to this?

Below is the code i used in the php file.

\<?php  
$sendTo = “[ollie\_mott@yahoo.co.uk](mailto:ollie_mott@yahoo.co.uk)”;  
$subject = “A query from your website”;

$headers = "From: " . $\_POST[“email”] . "  
";  
$headers .= "Phone; " . $\_POST[“phone”] . "  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$message = $\_POST[“message”];  
mail($sendTo, $subject, $message, $headers);  
?\>

I have all the input fields in the flash document matching those in the PHP doc.

Hope somebody out there can help.

Regards

Ollie
