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
$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.