package sihl-type

  1. Overview
  2. Docs
exception Exception of string
type t = {
  1. sender : string;
  2. recipient : string;
  3. subject : string;
  4. text_content : string;
  5. html_content : string;
  6. cc : string list;
  7. bcc : string list;
  8. html : bool;
  9. template_id : string option;
  10. template_data : (string * string) list;
}
val to_yojson : t -> Yojson.Safe.t
val equal : t -> t -> Ppx_deriving_runtime.bool
val make : sender:string -> recipient:string -> subject:string -> text_content:string -> html_content:string -> ?cc:string list -> ?bcc:string list -> html:bool -> ?template_id:string -> ?template_data:(string * string) list -> unit -> t
val template_data : t -> (string * string) list
val template_id : t -> string option
val html : t -> bool
val bcc : t -> string list
val cc : t -> string list
val html_content : t -> string
val text_content : t -> string
val subject : t -> string
val recipient : t -> string
val sender : t -> string
module Fields : sig ... end
val inbox : t list ref
val get_inbox : unit -> t list
val add_to_inbox : t -> unit
val clear_inbox : unit -> unit
val set_text_content : string -> t -> t
val set_html_content : string -> t -> t
OCaml

Innovation. Community. Security.