Email send

by 2 replies
3
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
#programming #email #send
  • [DELETED]
  • That code is php code when submitting, it doesn't include the html form. If you already know how to create html form then the code is fine. You can test it first to make sure it's working or not.
  • Banned
    Try to run it first then you can see it right or wrong.
    Basically I'm not expert about this topic.

Next Topics on Trending Feed

  • 3

    i want to know this code right or wrong i just want <?php $body = '<table width="100%" border="0" cellspacing="2" cellpadding="2">