# Html Email no longer working

**URL:** <https://forum.kirupa.com/t/html-email-no-longer-working/235794>\
**Category:** programming\
**Created:** [August 14, 2007, 8:42pm UTC](https://forum.kirupa.com/t/html-email-no-longer-working/235794 "2007-08-14T20:42:51Z")\
**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:** [August 14, 2007, 8:42pm UTC](https://forum.kirupa.com/t/html-email-no-longer-working/235794/1 "2007-08-14T20:42:51Z")

</div>

I put together an email enquiry form that sends and email from variables posted from a flash form, its kind of a mish mash of tutorials including from the kirupa tutorial.

It used to work when I was on a Windows based server, now it has moved to a Linux based server. The html text format no longer works. It looks like this now:

\<p\>\<b\>Company:\</b\>_ **Some text** _\</p\>\<p\>\<b\>Telephone:\</b\>51-1-\*\ ***6120\</p\>\<p\>\<b\>Enquiry:\</b\>_Some comment_** \</p\>

Why does it not format the text on a linux server. Whats wrong??? Is there something I need to change in the server settings that i’ve forgotten?

Heres the code:

```php

<?php

$to = ' ******* @gmail.com' . ', '; // note the comma

$message = $_POST["message"];   
$telephone = $_POST["telephone"];  
$company = $_POST["company"]; 

// subject
$subject = 'Inquiry';

// message

$mail = "<p><b>Company:</b>" . $company . "</p>" . "<p><b>Telephone:</b>" . $telephone . "</p>" . "<p><b>Enquiry:</b>" .$message . "</p>"; 

$headers = "MIME-Version: 1.0" . "
";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "
";
$headers .= "From: " . $_POST["name"] . "<" . $_POST["email"] .">
";   
$headers .= "Reply-To: " . $_POST["email"] . "
";   
$headers .= "Return-path: " . $_POST["email"];   

// Mail it
mail($to, $subject, $mail, $headers);

?>

```

Any help much appreciated.
