include module type of struct include Sihl.Contract.Email end
Sourcetype t = {sender : string;recipient : string;subject : string;text : string;html : string option;cc : string list;bcc : string list;
} Sourceexception Exception of string Sourceval to_sexp : t -> Sexplib0.Sexp.t 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_html : string option -> t -> t Sourceval create :
?html:string ->
?cc:string list ->
?bcc:string list ->
sender:string ->
recipient:string ->
subject:string ->
string ->
t Sourceval should_intercept : unit -> bool Sourcetype smtp_config = {sender : string;username : string;password : string;hostname : string;port : int option;start_tls : bool;ca_path : string option;ca_cert : string option;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 Sourcetype sendgrid_config = {api_key : string;console : bool option;
}