Added Pontus Ullgren's message priority code.
[squirrelmail.git] / src / compose.php
index b0db9b73a0f40d10e8c1ee1d1aaad79dbc88e423..f0334c1ea091b8a370448a697d861514f0ab73c0 100644 (file)
          echo "      <input type=submit name=\"html_addr_search\" value=\""._("Addresses")."\">";
       }   
       echo "\n    <INPUT TYPE=SUBMIT NAME=send VALUE=\"". _("Send") . "\">\n";
+      echo "\n    ". _("Priority") .":<select name=\"mailprio\">".
+           "\n                        <option value=1>". _("High") ."</option>".
+           "\n                        <option value=3 selected>". _("Normal") ."</option>".
+           "\n                        <option value=5>". _("Low") ."</option>".
+           "\n                      </select>";
       
       do_hook("compose_button_row");
 
         
          do_hook("compose_send");
 
-         if (! sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id)) {
+         if (! sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id, $mailprio)) {
            showInputForm(); 
            exit();
         }