Details of Suggestor:
Name: '.$name.'
Address: '.$address.'
Phone: '.$phone.'
Mobile: '.$mobile.'
Education Qualification: '.$education.'
Interested In: '.$interest.'
Email: '.$email.'
';
$message .='
Suggestion:
';
$message .="
$messageb
";
$subject = 'Message from ::Keltron IT Education::';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: '.$email. "\r\n" .
'Reply-To: '.$email. "\r\n" .
'X-Mailer: PHP/' . phpversion();
$emailsite='kite.contact@gmail.com';
if (preg_match('/gmail/',$emailsite))
$headers = str_replace("\r\n","\n",$headers);
//$mail =mail($emailsite, $subject, $message, $headers);
$mail = sendMail($email,$name, $subject, $message);
if($mail){
$msg = "Your query was submitted.
You will be contacted soon.";
echo "";
}else{
$msg= "Error occured! Mail could not be sent.";
}
}
?>