File: //backups/24hour/mail.php
<?php
//print_r($_POST['email'));
if (isset($_POST['email']))
{
$subject = "User's Contact Information from 24 Hour Cleaning Services landing Page";
$message = "<table style='border-collapse: collapse' border='1' cellspacing='0' cellpadding='6'>
<tbody>
<tr style='background: #47B7E8; color: #ffffff;'>
<th colspan='2'>Contact Information</th>
</tr>
<tr style='background: #eee;'>
<td>Your Name:</td><td>{$_POST['name']}</td>
</tr>
<tr style='background: #eee;'>
<td>Email Id:</td><td>{$_POST['email']}</td>
</tr>
<tr style='background: #eee;'>
<td>Service:</td><td>{$_POST['service']}</td>
</tr>
<tr style='background: #eee;'>
<td>Phone:</td><td>{$_POST['phone']}</td>
</tr>
<tr style='background: #eee;'>
<td>Message:</td><td>{$_POST['message']}</td>
</tr>
</tbody>
</table>";
$to = "rishabh.kumar@digitalwebsolutions.in,sarvesh.bahadur@digitalwebsolutions.in";
$from = $_POST['email'];
$headers .= 'MIME-Version: 1.0'."\r\n";
$headers ="From: ".$from."\r\n";
$headers .= 'Content-type:text/html;charset=iso-8859-1'."\r\n";
@mail($to,$subject,$message,$headers);
$redirect = 'thankyou.html';
echo "<script>window.location='{$redirect}';</script>";
}
?>