# Formatting text in PHP email

**URL:** <https://forum.kirupa.com/t/formatting-text-in-php-email/233478>\
**Category:** programming\
**Created:** [July 24, 2007, 12:56pm UTC](https://forum.kirupa.com/t/formatting-text-in-php-email/233478 "2007-07-24T12:56:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Post date:** [July 24, 2007, 12:56pm UTC](https://forum.kirupa.com/t/formatting-text-in-php-email/233478/1 "2007-07-24T12:56:26Z")

</div>

I’m trying to format text that is sent in an email from PHP with something like this:

```php

$mail = "<b>Telephone:</b>" . $telephone . "
" . "<b>Address:</b>" . $address . "
" . "<b>Enquiry:</b>" .$message; 

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

```

It ends up looking like this: “\<b\>Telephone:\</b\> 0034\*\*\*\*\*\*\*\*\*” in the emails - it seems to be quoting the tags.

What should I be using?
