Feedback
Please enter your name!
';
}
else if(trim($email) == '')
{
$error = '
Please enter your email address!
';
}
else if(!isEmail($email))
{
$error = '
You have enter an invalid e-mail address. Please, try again!
';
}
if(trim($subject) == '')
{
$error = '
Please enter a subject!
';
}
else if(trim($message) == '')
{
$error = '
Please enter your message!
';
}
if($error == '')
{
if(get_magic_quotes_gpc())
{
$message = stripslashes($message);
}
// the email will be sent here
// make sure to change this to be your e-mail
$to = "raghbir.kapoor@kiratitsolutions.com,info@kiratitsolutions.com";
// the email subject
// '[Contact Form] :' will appear automatically in the subject.
// You can change it as you want
$subject = '[Contact Form] : ' . $subject;
// the mail message ( add any additional information if you want )
$msg = "From : $name \r\ne-Mail : $email \r\nSubject : $subject \r\n\n" . "Message : \r\n$message";
mail($to, $subject, $msg, "From: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n");
?>
Congratulations!!
Thank you =$name;?>, your message is sent!
=$error;?>