| Current Path : /home2/wtmwscom/www/ |
| Current File : /home2/wtmwscom/www/franchise_enquiry_model.php |
<?php
session_start();
include './function_lib.php';
$name = $_POST['name'];
$email = $_POST['email'];
$mobile = $_POST['subject'];
$message = $_POST['message'];
// $state=$_POST['state'];
// $city=$_POST['city'];
$to = "ritu@wtmit.com";
$subject = "Franchise Enquiry From The Wtm WebShop";
$txt = '<html>
<head>
<style type="text/css">
table{width:600px; border-collapse:collapse; table-layout:auto; vertical-align:top; margin-bottom:15px; border:1px solid #CCCCCC;}
table thead th{color:#FFFFFF; background-color:#666666; border:1px solid #CCCCCC; border-collapse:collapse; text-align:center; table-layout:auto; vertical-align:middle;}
table tbody td{vertical-align:top; border-collapse:collapse; border-left:1px solid #CCCCCC; border-right:1px solid #CCCCCC;}
table thead th, table tbody td{padding:5px; border-collapse:collapse;}
table tbody tr.light{color:#666666; background-color:#F7F7F7;}
table tbody tr.dark{color:#666666; background-color:#E8E8E8;}
p{color: navy; font-size: 14px;}
p a{ color: orangered; text-decoration: none;}
p a:hover{text-decoration: underline;}
</style>
</head>
<body>
<table>
<thead>
<th colspan="2" style="text-align: left;">Query of client to mindspace, Client Login Details is as Follow</th>
</thead>
<tbody>
<tr class="dark">
<td width="200" align="right">Clients Name </td>
<td>' . $name . '</td>
</tr>
<tr class="dark">
<td width="200" align="right">Clients Email Id </td>
<td>' . $email . '</td>
</tr>
<tr class="light">
<td width="200" align="right">Clients Message </td>
<td>' . $message . '</td>
</tr>
</tbody>
</table>
<p>
Please keep it confidential. Please login <a href="http://mindspace/">www.mindspace</a>
</p>
<p style="color: #556b2f;">
Thanks <br />
<b>The Wtm WebShop Pvt. Ltd.</b>
</p>
</body>
</html>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: info@mindspace";
if (mail($to, $subject, $txt, $headers)) {
setMessage("Thank you for contact us.<br/> Your message has been sent.<br/> We will contact you in a shortest possible time.<br/>", 'alert alert-success');
redirect('./franchise_enquiry.php');
// echo "<p style='text-align: center;'>Thank you for contact us.<br/> Your message has been sent.<br/> We will contact you in a shortest possible time.<br/><br/> <span style='color: cornflowerblue;'>Now you can visit home page.</span><p>";
} else {
setMessage('Your email address is incorrect', 'alert alert-danger');
redirect('./franchise_enquiry.php');
//echo "<p style='text-align: center;'>Your email address is incorrect<p>";
}
?>