Fixed to match ChriS's API changes to mod_caml.
[cocanwiki.git] / scripts / forgot_password.ml
index 20608b7..88a4833 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: forgot_password.ml,v 1.6 2004/10/09 12:20:57 rich Exp $
+ * $Id: forgot_password.ml,v 1.7 2005/03/31 14:24:04 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -65,7 +65,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
       "\n" ^
       "IP address of request: " ^ ip ^ "\n" in
 
-    Sendmail.send_mail ~subject ~to_addr:[ email ] ~body ();
+    Sendmail.send_mail ~subject ~to_addr:[ email ] body;
 
     let buttons = [ ok_button "/_login" ] in
     ok ~buttons ~title:"Password sent by email"