<style>
   td{border:1px #cacaca solid;padding:5px;}
</style>
<?php //print_r($correo);?>

<table style="width:90%">
<tr>
    <td>id</td>
    <td>nombre</td>
     <td>apellido</td>
      <td>email</td>
       <td>tel</td>
        <td>asunto</td>
        <td>ip</td>
        <td>fecha</td>
</tr>

<?php foreach($correo as $c){?>
<tr>
    <td><?php echo $c->id;?></td>
    <td><?php echo $c->nombre;?></td>
     <td><?php echo $c->apellido;?></td>
      <td><?php echo $c->email;?></td>
       <td><?php echo $c->tel;?></td>
        <td><?php echo $c->asunto;?></td>
        <td><?php echo $c->ip;?></td>
        <td><?php echo $c->fecha;?></td>
</tr>
<tr>
      <td colspan="8"><?php echo $c->mensaje;?></td>
</tr>

<?php }

?>
</table>