package sihl-email

  1. Overview
  2. Docs
include module type of struct include Sihl.Contract.Email_template end
type t = {
  1. id : string;
  2. label : string;
  3. text : string;
  4. html : string option;
  5. created_at : Ptime.t;
  6. updated_at : Ptime.t;
}
val name : string
val to_sexp : t -> Sexplib0.Sexp.t
val pp : Stdlib.Format.formatter -> t -> unit
val of_yojson : Yojson__Safe.t -> t option
val to_yojson : t -> [> `Assoc of (string * [> `Null | `String of string ]) list ]
val set_label : string -> t -> t
val set_text : string -> t -> t
val set_html : string option -> t -> t
val replace_element : string -> string -> string -> string
val render : (string * string) list -> string -> string option -> string * string option
val email_of_template : ?template:t -> Sihl__.Contract_email.t -> (string * string) list -> Sihl__.Contract_email.t Lwt.t
val create_email_of_template : ?cc:string list -> ?bcc:string list -> sender:string -> recipient:string -> subject:string -> t -> (string * string) list -> Sihl__.Contract_email.t
val render_email_with_data : (string * string) list -> Sihl__.Contract_email.t -> Sihl__.Contract_email.t
val log_src : Logs.src
module Logs : Logs.LOG
module Make (Repo : sig ... end) : Sihl.Contract.Email_template.Sig
module PostgreSql : sig ... end
module MariaDb : sig ... end
OCaml

Innovation. Community. Security.