}
else {
Header("Location: $location/right_main.php?mailbox=$urlMailbox&sort=$sort".
- "&startMessage=$startMessage¬e=".urlencode(_("Your Message has been sent.")));
+ "&startMessage=$startMessage&mail_sent=yes");
}
} else {
if ($compose_new_win == '1') {
sqgetGlobalVar('numMessages' , $numMessages, SQ_SESSION);
sqgetGlobalVar('session', $session, SQ_GET);
sqgetGlobalVar('note', $note, SQ_GET);
+sqgetGlobalVar('mail_sent', $mail_sent, SQ_GET);
sqgetGlobalVar('use_mailbox_cache', $use_mailbox_cache, SQ_GET);
if ( sqgetGlobalVar('startMessage', $temp) ) {
displayPageHeader($color, $mailbox);
}
do_hook('right_main_after_header');
+
+/* display a message to the user that their mail has been sent */
+if (isset($mail_sent) && $mail_sent == 'yes') {
+ $note = _("Your Message has been sent.");
+}
if (isset($note)) {
echo html_tag( 'div', '<b>' . $note .'</b>', 'center' ) . "<br>\n";
}