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

Mail.Sendmail
type mail = {
|
mail_to :string list; |
|
mail_cc :string list; |
|
mail_from :string; |
|
mail_subject :string; |
|
mail_body :string; |
}
val sendmail : ?bin:string -> mail -> string
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 the error code.
Returns the message id built to send the message.
bin : can be used to specify the command to use. Default is "sendmail".