X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fcontact.ml;fp=scripts%2Fcontact.ml;h=6666b15e6be12d66408303c4b4333e531e2b82d6;hb=113f16040c4eb712172eaa21e066311133fb9e6f;hp=23dd68b26963dbf533fa255b98a6cad517f1cbb0;hpb=d135fd3101a5cae5f54d158608b6548c357d2874;p=cocanwiki.git diff --git a/scripts/contact.ml b/scripts/contact.ml index 23dd68b..6666b15 100644 --- a/scripts/contact.ml +++ b/scripts/contact.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: contact.ml,v 1.12 2006/07/31 09:10:33 rich Exp $ + * $Id: contact.ml,v 1.13 2006/07/31 09:49:42 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 @@ -148,8 +148,10 @@ let run r (q : cgi) dbh hostid {hostname = hostname} user = template#set "nr_uploads" (string_of_int (List.length uploads)); (* Send the initial email. *) + let content_type = + "text/plain", ["charset", Mimestring.mk_param "UTF-8"] in let body = template#to_string in - let msg = Netsendmail.compose ~to_addrs ~subject body in + let msg = Netsendmail.compose ~to_addrs ~subject ~content_type body in Netsendmail.sendmail msg; (* Send the following uploads by email. *)