type 'a monad = 'a IO.t
type request = [
Type of a request.
module Addr : sig ... end
Module for handling email addresses.
Exception raised when the remote SMTP server returns a negative reply.
open ~host ~port is a promise of a handle to an open connection to the SMTP server located at
close h closes
h, cleanly exiting the connection to the SMTP server if needed.
request h req sends
req to the SMTP server handled by
send h ~from ~to_ ~body use the SMTP handled by
h to send a mail of body
~body from address
~from to addresses