* Sending messages now works as expected
[squirrelmail.git] / src / compose.php
index 222851ee2785d96548ea6ba95406428ec02f71c5..33bc51d03a9fec0c934cc20489cf8eec51acf062 100644 (file)
          set_my_charset();
          do_hook("compose_send");
 
-         if (sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id) == 0) {showInputForm(); exit();}
+         if (! sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id)) {
+           showInputForm(); 
+           exit();
+        }
+        Header("Location: right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=1");
       } else {
          //$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
          displayPageHeader($color, $mailbox);