";
if($err == '')
{
$name = $HTTP_POST_VARS['sname'];
$location = $HTTP_POST_VARS['loc'];
$email = $HTTP_POST_VARS['semail'];
$msg = $HTTP_POST_VARS['smessage'];
$to = 'tanjim.morshed@gmail.com';
$sub = "TanjimMorshed.Com";
$body = "Hi,
======================================================================================================
Name: $name.
Location: $location.
E-Mail: $email.
Message: $msg.
======================================================================================================
Thanks.
";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $email <$email>\r\n";
if (mail($to,$sub,$body,$headers))
$m = 'Successfully Sent';
else
$m = 'Not sent...please try later.';
}
}
?>