ismtp-2.0.3: Advanced ESMTP library

Stabilityexperimental
MaintainerErtugrul Soeylemez <es@ertes.de>

Network.Smtp.Types

Contents

Description

Types used by ismtp.

Synopsis

Mail monad

type Mail r a = MailT r IO aSource

The Mail monad is MailT over IO.

type MailT r m = Iteratee SmtpResponse (StateT r MailConfig m)Source

The MailT monad transformer encapsulates an SMTP session.

type StringMailT r m = Iteratee ByteString (StateT r MailConfig m)Source

Convenient type alias for raw streams. Needed by Network.Smtp.Monad.runMailT.

SMTP service extensions

data Extension Source

SMTP service extension.

Constructors

AuthExt (Set AuthMethod)

Authentication extension.

data AuthMethod Source

Authentication methods for the SMTP authentication extension.

Constructors

AuthMethod

We don't know any authentication methods yet.

Other types

data MailConfig Source

Mail session configuration.

Constructors

MailConfig 

Fields

mailExtensions :: Set Extension

Supported extensions.

mailHandle :: Handle

Connection handle.

data SmtpCommand Source

Failed SMTP command (used by SmtpException).

Constructors

SmtpWelcomeCmd

Waiting for welcome message.

SmtpHelloCmd ByteString

EHLO or HELO with domain.

SmtpMailFromCmd ByteString

MAIL FROM with address.

SmtpRcptToCmd ByteString

RCPT TO with address.

SmtpDataCmd

DATA.

SmtpResetCmd

RSET.

SmtpQuitCmd

QUIT.

data SmtpResponse Source

SMTP response.

Constructors

SmtpResponse 

Fields

smtpCode :: Integer

Three digit response code.

smtpMessages :: Vector ByteString

Messages sent with the code.