2 replies
i want to know this code right or wrong i just want
<?php
$body = '<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>Name :</td>
<td>'.$_POST['name'].'</td>
</tr>
<tr>
<td>Date of Birth :</td>
<td>'.$_POST['dob'].'</td>
</tr>
<tr>
<td>Date of Time :</td>
<td>'.$_POST['btime'].'</td>
</tr>
<tr>
<td>Birth Palace :</td>
<td>'.$_POST['bplace'].'</td>
</tr>
<tr>
<td>Contact No. :</td>
<td>'.$_POST['mobile'].'</td>
</tr>


<tr>
<td>E Mail :</td>
<td>'.$_POST['Email'].'</td>
</tr>
<tr>
<td>Comments :</td>
<td>'.$_POST['Comments'].'</td>
</tr>
</table>';

$to = "123213@gmail.com";
$subject = "RISHEE :: from our Website";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From:'.$_POST['Name'].'<'.$_POST['Email']."> \r\n";

mail($to, $subject, $body, $headers);

?>


Many thanks
#email #send

Trending Topics