<td><b><?php 
    _e('Subject', MAILUSERS_I18N_DOMAIN);
    ?>
</b></td>
		<td><?php 
    echo mailusers_get_default_mail_format() == 'html' ? $subject : '<pre>' . format_to_edit($subject) . '</pre>';
    ?>
</td>
	</tr>
	<tr>
		<td><b><?php 
    _e('Message', MAILUSERS_I18N_DOMAIN);
    ?>
</b></td>
		<td><?php 
    echo mailusers_get_default_mail_format() == 'html' ? $mail_content : '<pre>' . wordwrap(strip_tags($mail_content), 80, "\n") . '</pre>';
    ?>
</td>
	</tr>
<?php 
}
?>
	</tbody>
</table>
<form name="SendTestEmail" action="" method="post">
	<p class="submit">
		<input type="hidden" name="sendtestemail" value="true" />
		<input class="button-primary" type="submit" name="Submit" value="<?php 
_e('Send Test Notification to Yourself', MAILUSERS_I18N_DOMAIN);
?>
 &raquo;" />
    if (!isset($_POST['from_sender']) || trim($_POST['from_sender']) == '') {
        $from_sender = 0;
    } else {
        $from_sender = $_POST['from_sender'];
    }
    if (!isset($_POST['group_mode']) || trim($_POST['group_mode']) == '') {
        $group_mode = $mailusers_send_to_group_mode;
    } else {
        $group_mode = $_POST['group_mode'];
    }
}
if (!isset($send_targets)) {
    $send_targets = array();
}
if (!isset($mail_format)) {
    $mail_format = mailusers_get_default_mail_format();
}
if (!isset($subject)) {
    $subject = '';
}
if (!isset($mail_content)) {
    $mail_content = '';
}
if (!isset($group_mode)) {
    $group_mode = $mailusers_send_to_group_mode;
}
//  Override the send from address?
if ($from_sender == 1 && !empty($override_address) && is_email($override_address)) {
    $from_address = $override_address;
    if (!empty($override_name)) {
        $from_name = $override_name;
 $post = get_post($post_id);
 setup_postdata($post);
 $post_title = $post->post_title;
 $post_url = get_permalink($post_id);
 $post_content = explode('<!--more-->', $post->post_content, 2);
 //$post_excerpt = get_the_excerpt() ;
 $post_excerpt = $post->post_excerpt;
 $post_author = get_userdata($post->post_author)->display_name;
 if (empty($post_excerpt)) {
     $post_excerpt = $post_content[0];
 }
 //  Deal with post content in array form
 if (is_array($post_content)) {
     $post_content = $post_content[0];
 }
 if (mailusers_get_default_mail_format() == 'html') {
     $post_excerpt = wpautop($post_excerpt);
 }
 // Process short codes?
 if (mailusers_get_shortcode_processing() == 'true') {
     //error_log(print_r(htmlentities($post_content), true)) ;
     $post_content = do_shortcode($post_content);
     //error_log(print_r(htmlentities($post_content), true)) ;
     $post_excerpt = do_shortcode($post_excerpt);
 }
 // Replace the template variables concerning the blog details
 // unless content has already been sent and comes back through a POST
 // --
 if (!isset($subject)) {
     $subject = mailusers_get_default_subject();
     $subject = mailusers_replace_blog_templates($subject);