Im trying the following
` <?php
foreach ($entries as $entry) {
$user = $entry->getUser() ?: $entry->getStaff();
$poster = $entry->getStaff();
$sign = $poster->getSignature();
$name = $user ? $user->getName() : $entry->poster;
$color = $entryTypes[$entry->type]['color'];
?>
<tr>
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
<div style="font-family:helvetica;font-size:12px;line-height:1;text-align:left;color:#000000;">Van <b><span style="color: <?php echo $color; ?>"> <?php echo $name; ?></span></b><br>
Datum <?php echo Format::daydatetime($entry->created); ?><br><br><br>
<?php echo $entry->getBody()->display('email');?>
<?php print $sign ?>
<br><br>
</div>
</td>
</tr>
<tr>
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
<p style="border-top:solid 1px lightgrey;font-size:1;margin:0px auto;width:100%;"></p>
<!--[if mso | IE]>
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 1px lightgrey;font-size:1;margin:0px auto;width:670px;" role="presentation" width="670px">
<tr>
<td style="height:0;line-height:0;"> </td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<?php
} ?>`
It looks working but for some reason the reply gets printed in the web browser and the script is not sending any emails.
Doing something wrong?