package sihl-email

  1. Overview
  2. Docs
include module type of struct include Sihl.Contract.Email end
type t = {
  1. sender : string;
  2. recipient : string;
  3. subject : string;
  4. text : string;
  5. html : string option;
  6. cc : string list;
  7. bcc : string list;
}
val name : string
exception Exception of string
module type Sig = Sihl.Contract.Email.Sig
val to_sexp : t -> Sexplib0.Sexp.t
val pp : Format.formatter -> t -> unit
val of_yojson : Yojson__Safe.t -> t option
val to_yojson : t -> [> `Assoc of (string * [> `List of [> `String of string ] list | `Null | `String of string ]) list ]
val set_text : string -> t -> t
val set_html : string option -> t -> t
val create : ?html:string -> ?cc:string list -> ?bcc:string list -> sender:string -> recipient:string -> subject:string -> string -> t
val log_src : Logs.src
module Logs : Logs.LOG
val dev_inbox : Sihl.Contract.Email.t list ref
module DevInbox : sig ... end
val print : Sihl.Contract.Email.t -> unit
val should_intercept : unit -> bool
val intercept : (Sihl.Contract.Email.t -> unit Lwt.t) -> Sihl.Contract.Email.t -> unit Lwt.t
module Template : sig ... end
OCaml

Innovation. Community. Security.