File: //backups/24houremergencyelectricians/mail.php
<?php
if (isset($_POST['submit']))
{
$services=$_POST['selectservice'];
// $services=implode(" ,",$services);
$subject = "Ableelectrician Contact details";
$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>Name</td><td>{$_POST['firstname']}</td>
</tr>
<tr style='background: #eee;'>
<td>Email</td><td>{$_POST['email']}</td>
</tr>
<tr style='background: #eee;'>
<td>Phone</td><td>{$_POST['phone']}</td>
</tr>
<tr style='background: #eee;'>
<td>Services</td><td>{$_POST['selectservice']}</td>
</tr>
<tr style='background: #eee;'>
<td>Message</td><td>{$_POST['message']}</td>
</tr>
</tbody>
</table>";
$to = "pooja.madan@smegoweb.com,ajb.electrical@live.com.au";
// $to = 'pankaj.gupta@digitalwebsolutions.in';
$from = $_POST['email'];
$headers .= 'MIME-Version: 1.0'."\r\n";
$headers ="From: info@ableelectrician.com.au"."\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>";
}
?>