package sihl-email

  1. Overview
  2. Docs

Parameters

module Repo : sig ... end

Signature

val get : ?ctx:(string * string) list -> string -> Sihl__.Contract_email_template.t option Lwt.t

get ?ctx id returns the email template by id.

val get_by_label : ?ctx:(string * string) list -> string -> Sihl__.Contract_email_template.t option Lwt.t

get_by_label ?ctx label returns the email template by label.

val create : ?ctx:(string * string) list -> ?html:string -> label:string -> string -> Sihl__.Contract_email_template.t Lwt.t

create ?ctx ?html label text creates an email template with text as text emal content and a label. An optional html content can be provided that will be displayed in email clients that support HTML.

val update : ?ctx:(string * string) list -> Sihl__.Contract_email_template.t -> Sihl__.Contract_email_template.t Lwt.t

update ?ctx template updates the email template.

val register : unit -> Sihl__.Core_service.t
val lifecycle : Sihl__.Core_lifecycle.lifecycle
OCaml

Innovation. Community. Security.