Module Smail.Mhmail (.ml)

module Mhmail: sig .. end
Sending mail with mhmail command.
Author(s): Maxence Guesdon
Version: 0.3
Raises Failure with a message if an error occurs.
Mail.Mhmail

type mail = {
   mail_to :string list;
   mail_cc :string list;
   mail_from :string;
   mail_subject :string;
   mail_body :string;
}
val sendmail : ?bin:string -> mail -> unit
sendmail mail send the given mail with the mhmail command.
Raises Failure if the command failed. The argument to Failure contains the command launched and its output (stdout and stderr).
bin : can be used to specify the command to use. Default is "mhmail".