module Sendmail:Elementary email functionssig..end
exception Failure of string
val sendmail : string Pervasives.ref"/usr/sbin/sendmail".val sendmail_args : string Pervasives.ref"-t
-i". You could add the "-f" option to specify the sender
email address, provided that the current user is one of
sendmail's trusted users.val send : unit -> Pervasives.out_channelCamlGI.Sendmail.close.
send does not perform any sort of processing or escaping on
the message.
val close : Pervasives.out_channel -> unitCamlGI.Sendmail.send.val send_mail : ?subject:string ->
?to_addr:string list ->
?cc:string list ->
?bcc:string list ->
?from:string ->
?content_type:string -> ?headers:(string * string) list -> string -> unit
send_mail will correctly escape headers, provided they
are in strict 7 bit US-ASCII. Its behaviour on non-7 bit
sequences is currently undefined (and probably wrong).
send_mail will not process or escape any part of the body.