i want to send an email using php mail() function where my message would be a table and the necessary information will be shown in the rows of that table... i wrote the code as follows...
$message = '
<table width="503" cellpadding="0" cellspacing="0" border="0" class="main_body_forms">
<tr>
<td width="118" valign="top"><p><strong>* First Name</strong></p></td>
<td width="1"></td>
<td width="384"><p><?php echo $f_name ;?>
</p></td>
</tr>
<tr>
<td width="118" valign="top"><p><strong>* Last Name</strong></p></td>
<td width="1"></td>
<td width="384"><p>
<?php echo $l_name; ?>
</p></td>
</tr>
</table>' ;
But the problem is when received the email the message does not show the table, it shows all these code...How can i solve it.? please help me..
$message = '
<table width="503" cellpadding="0" cellspacing="0" border="0" class="main_body_forms">
<tr>
<td width="118" valign="top"><p><strong>* First Name</strong></p></td>
<td width="1"></td>
<td width="384"><p><?php echo $f_name ;?>
</p></td>
</tr>
<tr>
<td width="118" valign="top"><p><strong>* Last Name</strong></p></td>
<td width="1"></td>
<td width="384"><p>
<?php echo $l_name; ?>
</p></td>
</tr>
</table>' ;
But the problem is when received the email the message does not show the table, it shows all these code...How can i solve it.? please help me..