<?php
if(isset($_POST[‘submit’]))
{
$to = “maheshkanna@gmail.com”;
$subject=”smile”;
$name = $_POST[‘name’];
$company = $_POST[‘company’];
$email = $_POST[’email’];
$landline = $_POST[‘landline’];
$mobile = $_POST[‘mobile’];
$message = $_POST[‘message’];
$email_body = ”
<html>
<head>
<style type=’text/css’>
td {
color: #414141;
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
line-height: 16px;
text-decoration: none;
}
</style>

<title>You have received a new message From IICAcademy</title>
</head>
<body>
<strong>You have received a new request info message From IICAcademy</strong>
<p>Here are the details:</p>
<table border =’0′>
<tr>
<td > Name</th><td>$name</td>
</tr>
<tr>
<td>Company </th><td>$company</td>
</tr>
<tr>
<td>Email</th><td>$email</td>
</tr>
<tr>
<td >Land Line Number</th><td>$landline</td>
</tr>
<tr>
<td>Mobile Number</td><td>$mobile</td>
</tr>
<tr>
<td>Company</td><td>$company</td>
</tr>
<tr>
<td>Message</td><td>$message</td>
</tr>
</table>

</body>
</html>
“;
// Always set content-type when sending HTML email
$headers = “MIME-Version: 1.0” . “\r\n”;
$headers .= “Content-type:text/html;charset=iso-8859-1” . “\r\n”;

// More headers
$headers .= “From: $email”. “\r\n”;
mail($to,$subject,$email_body,$headers);
//redirect to the ‘thank you’ page
echo”<script language=\”javascript\”>\n”;

echo”alert(‘Your Message has been submitted’)\n”;

echo “window.location= (‘request-more-info.html’);\n”;

echo “</script>”;

//header(‘Location: request-more-info.html’);
}
?>