package smtp
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Smtp_unix
include Smtp.S with type 'a monad = 'a
module Addr : sig ... endModule 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_.