<?php
$_POST["name"] = $name;
$_POST["email"] = $email;
nl2br($_POST["comment"])= $comment;
$to = "daniweb@daniweb.com";
$from = "".$_POST["email"]."";
$subject = "Code Snipplet for daniweb ";
$message = "<html>
<body background=\"#4B4B4B\">
<h1>Code Snipplet for daniweb</h1>
Hello daniweb , <br>
<center>
Name: $name <br>
Email: $email <br>
Comment: $comment <br>
</center>
</body>
</html>";
$headers = "From: Site contact form <daniweb@daniweb.com>\r\n";
$headers .= "Content-type: text/html\r\n";
mail($to, $subject, $message, $headers) or die ("Failure");
?>