tbrehm
2007-10-23 0a466dfd65c07d4bf8c61c0e98c536c0f0b65ec1
interface/web/mail/mail_get_edit.php
@@ -53,6 +53,16 @@
class page_action extends tform_actions {
   
   function onSubmit() {
      global $app, $conf;
      // Set the server ID according to the selected destination
      $tmp = $app->db->queryOneRecord("SELECT server_id FROM mail_user WHERE email = '".addslashes($this->dataRecord["destination"])."'");
      $this->dataRecord["server_id"] = $tmp["server_id"];
      unset($tmp);
      parent::onSubmit();
   }
   
}