Module LettersSource

Sourcetype config = {
  1. sender : string;
  2. username : string;
  3. password : string;
  4. hostname : string;
  5. port : int option;
  6. with_starttls : bool;
  7. ca_dir : string;
}
Sourcetype body =
  1. | Plain of string
  2. | Html of string
Sourcetype recipient =
  1. | To of string
  2. | Cc of string
  3. | Bcc of string
Sourceval build_email : from:string -> recipients:recipient list -> subject:string -> body:body -> Mrmime.Mt.t
Sourceval send : config:config -> recipients:recipient list -> message:Mrmime.Mt.t -> (unit, string) Lwt_result.t