This is in code-igniter. To send mail I have written a function using php mail(). The code is:
function mailsend()
{
$to="mymail@gmail.com";
$subject="test";
$message="<table>
<tr>
<td>Hello</td>
<td>World</td>
</tr>
</table>";
echo $message;
mail($to,$subject,$message);
}
When I send mail from server side, I get the html code in my mail, not the real table. But the $messageshows
the real table in browser. Is there any way in mail() to get the real table in the mail?