Command -package:hedgehog package:HaskellNet
SMTP commands.
Supports basic and extended SMTP protocol without TLS support.
For each command we provide list of the expected reply codes that
happens in success and failure cases respectively.
sendCommand sends a pop3 command via a pop3 connection. This action is
too generic. Use more specific actions
Sends a
Command to the server. Function that performs all the
logic for sending messages. Throws an exception if something goes
wrong.
Throws
SMTPException.
Safe wrapper for running a client command over the SMTP connection.
Note on current behavior
We allow the command to fail several times, retry happens in case if
we have received unexpected status code. In this case message will be
sent again. However in case of other synchronous or asynchronous
exceptions there will be no retries.
It case if number of retries were exceeded connection will be closed
automatically.
The behaviors in notes will likely be changed in the future and should
not be relied upon, see issues 76, 77.