<div id="back_button" style="float:right; margin-right:30px; margin-top:20px; margin-bottom:0px;">
    <a href="#">
        <span class="stronglastword"><?php echo $this->translate('Back to Options') ?></span>
    </a>
</div>

<table class="settings" style="margin-left:20px;">
	<tr>
		<td><?php echo $this->translate('Mass mail result') ?></td>
	</tr>
	<tr>
		<td><?php echo $this->translate('Listed below is the result of the Mass mail send') ?></td>
	</tr>
</table>

<div class="divider"></div>

<table class="settings">
	<?php foreach( $this->massmailResults as $result ) : ?>
	<tr>
		<td class="label"><?php echo $result['address'] ?></td>
		<td><?php echo $result['result'] ?></td>
	</tr>                                           
	<?php endforeach; ?>
</table>
<script type="text/javascript" language="JavaScript">

    $('#back_button', '#Mass_Mail').bind('click', function()
    {
    $('#Mass_Mail').load('<?php echo $this->moduleBaseUrl ?>/services/massmail', $('#massmailComposeMessage', '#Mass_Mail').serializeArray() )
    })
</script>
