package sihl

  1. Overview
  2. Docs

Module Contract.Email_templateSource

Sourcetype t = {
  1. id : string;
  2. label : string;
  3. text : string;
  4. html : string option;
  5. created_at : Ptime.t;
  6. updated_at : Ptime.t;
}
Sourceval name : string
Sourcemodule type Sig = sig ... end
Sourceval to_sexp : t -> Sexplib0.Sexp.t
Sourceval pp : Format.formatter -> t -> unit
Sourceval of_yojson : Yojson__Safe.t -> t option
Sourceval to_yojson : t -> [> `Assoc of (string * [> `Null | `String of string ]) list ]
Sourceval set_label : string -> t -> t
Sourceval set_text : string -> t -> t
Sourceval set_html : string option -> t -> t
Sourceval replace_element : string -> string -> string -> string
Sourceval render : (string * string) list -> string -> string option -> string * string option
Sourceval email_of_template : ?template:t -> Sihl__.Contract_email.t -> (string * string) list -> Sihl__.Contract_email.t Lwt.t
Sourceval create_email_of_template : ?cc:string list -> ?bcc:string list -> sender:string -> recipient:string -> subject:string -> t -> (string * string) list -> Sihl__.Contract_email.t
Sourceval render_email_with_data : (string * string) list -> Sihl__.Contract_email.t -> Sihl__.Contract_email.t
OCaml

Innovation. Community. Security.