package async_smtp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Envelope_status : sig ... end
module Expert : sig ... end
include module type of Async_smtp_types.Email.Simple with module Expert := Async_smtp_types.Email.Simple.Expert
type attachment_name = string
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create : ?from:Email_address.t -> to_:Email_address.t list -> ?cc:Email_address.t list -> ?reply_to:Email_address.t list -> subject:string -> ?id:string -> ?in_reply_to:string -> ?date:Core.Time.t -> ?auto_generated:unit -> ?extra_headers:(string * string) list -> ?attachments:(attachment_name * Content.t) list -> Content.t -> t
val from : t -> Email_address.t option
val to_ : t -> Email_address.t list option
val cc : t -> Email_address.t list option
val subject : t -> string option
val id : t -> string option
val all_attachments : t -> Attachment.t list
val find_attachment : t -> attachment_name -> Attachment.t option
val inline_parts : t -> Content.t list
val map_file_attachments : t -> f:(Attachment.t -> [ `Keep | `Replace of t ]) -> t
val send' : ?log:Async.Log.t -> ?credentials:Async_smtp__.Credentials.elt list -> ?server:Core.Host_and_port.t -> ?from:Async_smtp_types.Email_address.t -> ?sender_args:Async_smtp_types.Smtp_envelope.Sender_argument.t list -> to_:Async_smtp_types.Email_address.t list -> ?cc:Async_smtp_types.Email_address.t list -> ?bcc:Async_smtp_types.Email_address.t list -> ?reply_to:Async_smtp_types.Email_address.t list -> subject:string -> ?id:string -> ?in_reply_to:string -> ?date:Core.Time.t -> ?auto_generated:unit -> ?extra_headers: (Async_smtp_types.Email_headers.Name.t * Async_smtp_types.Email_headers.Value.t) list -> ?attachments:(attachment_name * Async_smtp_types.Email.Simple.Content.t) list -> Async_smtp_types.Email.Simple.Content.t -> Envelope_status.t Async.Deferred.Or_error.t
val send : ?log:Async.Log.t -> ?credentials:Async_smtp__.Credentials.elt list -> ?server:Core.Host_and_port.t -> ?from:Async_smtp_types.Email_address.t -> ?sender_args:Async_smtp_types.Smtp_envelope.Sender_argument.t list -> to_:Async_smtp_types.Email_address.t list -> ?cc:Async_smtp_types.Email_address.t list -> ?bcc:Async_smtp_types.Email_address.t list -> ?reply_to:Async_smtp_types.Email_address.t list -> subject:string -> ?id:string -> ?in_reply_to:string -> ?date:Core.Time.t -> ?auto_generated:unit -> ?extra_headers: (Async_smtp_types.Email_headers.Name.t * Async_smtp_types.Email_headers.Value.t) list -> ?attachments:(attachment_name * Async_smtp_types.Email.Simple.Content.t) list -> Async_smtp_types.Email.Simple.Content.t -> unit Async.Deferred.Or_error.t