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 -> ?language:string -> string -> Sihl__.Contract_email_template.t option Lwt.t

get_by_label ?ctx ?language label returns the email template by label and optional language.

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

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

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.