# PHP and email - simple problem

**URL:** <https://forum.kirupa.com/t/php-and-email-simple-problem/162982>\
**Category:** Uncategorized\
**Created:** [September 18, 2005, 3:21pm UTC](https://forum.kirupa.com/t/php-and-email-simple-problem/162982 "2005-09-18T15:21:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crunchysocks](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@crunchysocks](https://forum.kirupa.com/u/crunchysocks)\
**Post date:** [September 18, 2005, 3:21pm UTC](https://forum.kirupa.com/t/php-and-email-simple-problem/162982/1 "2005-09-18T15:21:30Z")

</div>

i think…

I did this tutorial

http://www.kirupa.com/developer/act…h\_php\_email.htm

And it almost did what i wanted, but in the email it sends you, it looked like this:

\<TEXTFORMAT LEADING=“2”\>\<P ALIGN=“LEFT”\>\<FONT FACE=“Times New Roman” SIZE=“15” COLOR="#17130A" LETTERSPACING=“0” KERNING=“0”\>\</FONT\>\</P\>\</TEXTFORMAT\>

Cut a lot of it out.

This is my php code

```php

<?php
$sendTo = "crunchysocks@gmail.com";
$subject = "SFStudios reply";

$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];

// For new lines use this
$addressbar."<br>".$website."<br>".$phone."<br>".$comments;

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

?>

```

And so basicly i just want it to format itself nicely…

Like have a heading saying

From: (IN BOLD)  
Scott

Email:  
[This@that.ther](mailto:This@that.ther)e

Please help, this is driving me nuts

Thanks! 😃
