X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fmailing_list_send.ml;h=623cfff98b37aa5913dcabc57b68c63cb8340e1b;hb=295f2cde3f43ccf7f775d39b95925e10aa4c37cb;hp=6fd1a19a05cab6b083a03856c22e6e9d9df55bf8;hpb=f33343df3525e01f05ecf80628cd46b6e5841001;p=cocanwiki.git diff --git a/scripts/mailing_list_send.ml b/scripts/mailing_list_send.ml index 6fd1a19..623cfff 100644 --- a/scripts/mailing_list_send.ml +++ b/scripts/mailing_list_send.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: mailing_list_send.ml,v 1.3 2004/09/24 17:11:57 rich Exp $ + * $Id: mailing_list_send.ml,v 1.5 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 @@ -87,7 +87,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = let body = template#to_string in let subject = "Site notice: " ^ hostname ^ ": Confirm your email address" in - Sendmail.send_mail ~subject ~body ~to_addr:[email] (); + Sendmail.send_mail ~subject ~to_addr:[email] body; (* Finish up. *) let buttons = [ ok_button "/" ] in @@ -97,4 +97,4 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = "first link in that email to confirm.") let () = - register_script run + register_script ~restrict:[CanView] run