package smtp

  1. Overview
  2. Docs
type 'a t

Monadic interface

val return : 'a -> 'a t
val bind : 'a t -> ('a -> 'b t) -> 'b t
val fail : exn -> 'a t
type ic

Channel like communication

type oc
val open_connection : host:string -> service:string -> (ic * oc) t
val shutdown_connection : ic -> unit t
val read_line : ic -> string t
val print_line : oc -> string -> unit t
OCaml

Innovation. Community. Security.