X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=3ce2007cc9fd0aad973f8eeba6419bbce061525d;hb=c10d79aa3c0ae0cae02bf07d47c202183c5f7bb8;hp=db305b5c0435505fb972847e235add6361a77230;hpb=d8a8fe9f2dc7c2200cd0aff33ef1ebf155d67a5a;p=squirrelmail.git
diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php
index db305b5c..3ce2007c 100644
--- a/plugins/listcommands/mailout.php
+++ b/plugins/listcommands/mailout.php
@@ -1,27 +1,24 @@
display('footer.tpl');
+ exit;
}
-printf( $out_string, htmlspecialchars($send_to) );
-
-echo addForm('../../src/compose.php', 'POST');
-
-
+$out_string = sprintf($out_string, '"' . htmlspecialchars($send_to) . '"');
$idents = get_identities();
+$fieldsdescr = listcommands_fieldsdescr();
+$fielddescr = $fieldsdescr[$action];
-echo html_tag('p', '', 'center' ) . _("From:") . ' ';
+$oTemplate->assign('out_string', $out_string);
+$oTemplate->assign('fielddescr', $fielddescr);
+$oTemplate->assign('send_to', $send_to);
+$oTemplate->assign('subject', $subject);
+$oTemplate->assign('body', $body);
+$oTemplate->assign('mailbox', $mailbox);
+$oTemplate->assign('idents', $idents);
-if (count($idents) > 1) {
- echo '' . "\n" ;
-} else {
- echo htmlspecialchars('"'.$idents[0]['full_name'].'" <'.$idents[0]['email_address'].'>');
-}
+$oTemplate->display('plugins/listcommands/mailout.tpl');
+$oTemplate->display('footer.tpl');
-echo '
'
-. addHidden('send_to', $send_to)
-. addHidden('subject', $subject)
-. addHidden('body', $body)
-. addHidden('mailbox', $mailbox)
-. addSubmit(_("Send Mail"), 'send')
-. '
'
-. '