Module type Contract_email_template.Sig
val get : ?ctx:(string * string) list -> string -> t option Lwt.t
get ?ctx id
returns the email template byid
.
val get_by_label : ?ctx:(string * string) list -> string -> t option Lwt.t
get_by_label ?ctx label
returns the email template bylabel
.
val create : ?ctx:(string * string) list -> ?html:string -> label:string -> string -> t Lwt.t
create ?ctx ?html label text
creates an email template withtext
as text emal content and alabel
. An optionalhtml
content can be provided that will be displayed in email clients that support HTML.
val update : ?ctx:(string * string) list -> t -> t Lwt.t
update ?ctx template
updates the emailtemplate
.
val register : unit -> Sihl__.Core_container.Service.t
include Sihl__.Core_container.Service.Sig
val lifecycle : Sihl__.Core_lifecycle.lifecycle