mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-18 18:56:25 +00:00
body be in a diffrent spot
When sending email with codeigniter the body is inside $structure->parts. I should look into what mail objects variants are out there.
This commit is contained in:
parent
f1ed392b94
commit
708962647c
@ -174,7 +174,13 @@ $messages = $MyMbox->get($sortOrderArr);
|
||||
<tr id="mail-<?php echo $data['num'];?>" style="display:none">
|
||||
<td></td>
|
||||
<td colspan="4">
|
||||
<?php echo $structure->body ?>
|
||||
<?php
|
||||
if (isset($structure->parts)) {
|
||||
echo $structure->parts[0]->body;
|
||||
}else{
|
||||
echo $structure->body;
|
||||
}
|
||||
?>
|
||||
<hr>
|
||||
<p><a class="btn btn-primary" data-toggle="collapse" href="#email-<?php echo $data['num'];?>" aria-expanded="false" aria-controls="email-<?php echo $data['num'];?>">Raw source</a></p>
|
||||
<div class="collapse" id="email-<?php echo $data['num'];?>"><pre><?php echo $message;?></pre></div>
|
||||
|
Loading…
Reference in New Issue
Block a user