Hi,

i have a web host and im trying to send php mail with this script:

PHP Code:
<?php
mb_internal_encoding
('UTF-8');
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$to  $_POST['target'];
$message $_POST['message'];
$from_name mb_encode_mimeheader($name,'UTF-8');
$headers  "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "To: $name <$to>\r\n";
$headers .= "From: $from_name <$email>\r\n";
mail($to$subject$message$headers);
?>
<html>
 <head></head>
 <body>
  <FORM method="POST" action="mail.php">
 <TABLE class="reserve" cellpadding="0" width="100%" cellspacing="0" align="left">
  <TBODY>
   <TR> 
    <TD width="100%" colspan="2">
     <H1>Email form</H1>
    </TD>
   </TR>
   <TR>
    <TD align="left" valign="top" height="13px" width="20%">Name:</TD>
    <TD><INPUT type="text" name="name" size="20"></TD>
   </TR>
   <TR>
    <TD>Email:</TD>
    <TD><INPUT type="text" name="email" size="20"></TD>
   </TR>
   <TR>
    <TD>Target address:</TD>
    <TD><INPUT type="text" name="target" size="20"></TD>
   </TR>
   <TR>
    <TD>Subject:</TD>
    <TD><INPUT type="text" name="subject" size="20"></TD>
   </TR>
   <TR>
    <TD align="left" colspan="2">Message:</TD>
   </TR>
   <TR>
    <TD align="left"></TD>
    <TD><TEXTAREA name="message" rows="4" cols="32"></TEXTAREA></TD>
   </TR>
   <TR>
    <TD style="text-align:center" colspan="2"><input type="submit" value="SUBMIT"></TD>  
   </TR>
  </TBODY>
 </TABLE>
</FORM>   
 </body>
</html>
But its not sending any mail. I guess its because of some server weird configuration. I have Linux CentOS. Could you please help me out?

Thank you.