Library
Module
Module type
Parameter
Class
Class type
type 'a monad = 'a IO.t
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 host:port
.
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 h
.
send h ~from ~to_ ~body
use the SMTP handled by h
to send a mail of body ~body
from address ~from
to addresses ~to_
.