<?php
$user_name = $_POST["NameBox"];
$user_contact = null;
$user_contact=$_POST["ContactBox"];
$comment = $_POST["msgbox"];
if($user_contact==null)
{
$user_contact = "Not provided";
}
$to = "mymail@domain.com";
$subject = "Message From Web";
$body = "Contact name is = $user_name | Contact number is = $user_contact | user comment is = $comment";
mail($to,$subject,$body);
header("Location:http://www.masconsolidated.com/confirmation.html");
exit;
?>
this is my send mail code . i want to know will it work ?? i want to make sure it is correct before upload the script ..thank you.. is there any way to test it at home ..i mean the php sendmail and php.ini :( can you tell me how do i configure mail server at home :( code will be better