package sihl-email

  1. Overview
  2. Docs

Module Sihl_emailSource

include module type of struct include Sihl.Contract.Email end
Sourcetype 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;
}
Sourceval name : string
Sourceexception Exception of string
Sourceval to_sexp : t -> Sexplib0.Sexp.t
Sourceval pp : Format.formatter -> t -> unit
Sourceval of_yojson : Yojson__Safe.t -> t option
Sourceval to_yojson : t -> [> `Assoc of (string * [> `List of [> `String of string ] list | `Null | `String of string ]) list ]
Sourceval set_text : string -> t -> t
Sourceval set_html : string option -> t -> t
Sourceval create : ?html:string -> ?cc:string list -> ?bcc:string list -> sender:string -> recipient:string -> subject:string -> string -> t
Sourceval log_src : Logs.src
Sourcemodule Logs : Logs.LOG
Sourceval dev_inbox : Sihl.Contract.Email.t list ref
Sourcemodule DevInbox : sig ... end
Sourceval print : Sihl.Contract.Email.t -> unit
Sourceval should_intercept : unit -> bool
Sourceval intercept : (Sihl.Contract.Email.t -> unit Lwt.t) -> Sihl.Contract.Email.t -> unit Lwt.t
Sourcetype smtp_config = {
  1. sender : string;
  2. username : string;
  3. password : string;
  4. hostname : string;
  5. port : int option;
  6. start_tls : bool;
  7. ca_path : string option;
  8. ca_cert : string option;
  9. console : bool option;
}
Sourceval smtp_config : string -> string -> string -> string -> int option -> bool -> string option -> string option -> bool option -> smtp_config
Sourceval smtp_schema : (string, string -> string -> string -> string -> int option -> bool -> string option -> string option -> bool option -> smtp_config, smtp_config) Conformist.t
Sourcemodule type SmtpConfig = sig ... end
Sourcemodule EnvSmtpConfig : sig ... end
Sourcemodule Smtp : sig ... end
Sourcetype sendgrid_config = {
  1. api_key : string;
  2. console : bool option;
}
Sourceval sendgrid_config : string -> bool option -> sendgrid_config
Sourceval sendgrid_schema : (string, string -> bool option -> sendgrid_config, sendgrid_config) Conformist.t
Sourcemodule type SendGridConfig = sig ... end
Sourcemodule EnvSendGridConfig : sig ... end
Sourcemodule SendGrid : sig ... end
Sourcemodule Template : sig ... end
OCaml

Innovation. Community. Security.