# Sendmail formatting

**URL:** <https://forum.kirupa.com/t/sendmail-formatting/127598>\
**Category:** Uncategorized\
**Created:** [November 4, 2004, 3:11pm UTC](https://forum.kirupa.com/t/sendmail-formatting/127598 "2004-11-04T15:11:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imagined](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@imagined](https://forum.kirupa.com/u/imagined)\
**Post date:** [November 4, 2004, 3:11pm UTC](https://forum.kirupa.com/t/sendmail-formatting/127598/1 "2004-11-04T15:11:22Z")

</div>

Hello!

I have this PHP script that sends an email when someone fills out a form and passes information via POST. It works fine and smooth. My problem is that the email has no formatting whatsoever. At least, I want every field (like Name, Company, etc) to be separated in paragraphs. I add a \<br tag but instead of separating the \<br shows up. How could I separate them in paragraphs?

(My domain is [tcreativo.com](http://tcreativo.com))Also, when I get the mail in my inbox, the sender comes out as  
[whatevername@tcreativo.com](mailto:whatevername@tcreativo.com). For example, if I enter Arnold in the Name field, when I get the mail in my inbox it would be like  
[From:Arnold@tcreativo.com](mailto:From:Arnold@tcreativo.com)  
How can I just have the Arnold without the @tcreativo.com.

```php

<?php
	$yourName = $_REQUEST['yourName'] ;
	$yourCompany = $_REQUEST['yourCompany'] ;
	$yourPhone = $_REQUEST['yourPhone'] ;
	$yourFax = $_REQUEST['yourFax'] ;
	$yourEmail = $_REQUEST['yourEmail'] ;
	$yourMessage = $_REQUEST['yourMessage'] ;
	$dataSent = 'Name: ' . $yourName . ' - Company: ' . $yourCompany . ' - Phone: ' . $yourPhone . ' - Fax: ' . $yourFax . ' - Email: ' . $yourEmail . ' - Message: ' . $yourMessage;
  mail( "chafasite@yahoo.com", "Taller Creativo Contact Form", $dataSent, "From: $yourName" );
  header( "Location: http://www.tcreativo.com/confirmation.php" );
?>

```

Thanks in advance,

Leo
