ismtp-2.0.2: Advanced ESMTP library

Stabilityexperimental
MaintainerErtugrul Soeylemez <es@ertes.de>

Network.Smtp.Session

Contents

Description

SMTP session computations.

Synopsis

Initialization

hello :: forall m r. MonadIO m => ByteString -> MailT r m ()Source

Try EHLO with fallback to HELO.

mailData :: MonadIO m => Enumerator ByteString (MailT r m) () -> MailT r m ()Source

Send the DATA command along with the mail content. Please note that the last line must be properly terminated by CRLF.

mailFrom :: MonadIO m => ByteString -> MailT r m ()Source

Send MAIL FROM command.

quit :: MonadIO m => MailT r m ()Source

Send QUIT command.

rcptTo :: MonadIO m => ByteString -> MailT r m ()Source

Send RCPT TO command.

reset :: MonadIO m => MailT r m ()Source

Send RSET command.

waitForWelcome :: Monad m => MailT r m ()Source

Wait for the welcome greeting from the SMTP server.